使用pipenv新建Django并且使用Pycharm管理
1、md message
2、cd message
3、pipenv install
4、修改pip.file 将
url = "http://pypi.douban.com/simple"
verify_ssl = false
5、pipenv shell
6、pipenv install django
7、django-admin startproject message .
8、pycharm 打开message
9、python manage.py message_form
10、新建 static templates media apps
11、修改设置 project structure 将.venv排除,设置templates foldes为templates,否则pycharm 找不到django自建的templates目录。
12、修改DIR:[BASE_DIR / 'templates']
完成以上配置,则可以解决pycharm不能正常使用Pipenv新建django项目。