django 新建项目报错:Requested setting INSTALLED_APPS, but settings are not configured.
2018-04-04 14:43
453 查看
今天学习 django,使用 anaconda 安装完 django 后,想要新建一个项目:django-admin.py startproject HelloWorld但是却报错:
解决办法:
将 django-admin.py 后面的 .py 去掉即可:
django-admin startproject HelloWorld原因:
网上教程是手动来安装django,然后使用 django-admin.py 。但我是使用的pip安装的django,会自动生成 django-admin.exe,所以可以直接使用。
解决办法:
将 django-admin.py 后面的 .py 去掉即可:
django-admin startproject HelloWorld原因:
网上教程是手动来安装django,然后使用 django-admin.py 。但我是使用的pip安装的django,会自动生成 django-admin.exe,所以可以直接使用。
相关文章推荐
- [Django]引入模版之后报错Requested setting TEMPLATE_DEBUG, but settings are not configured.
- 配置设置[Django]引入模版之后报错Requested setting TEMPLATE_DEBUG, but settings are not configured.
- [Django]引入模版之后报错Requested setting TEMPLATE_DEBUG, but settings are not configured.
- django模板报错:Requested setting TEMPLATE_DEBUG, but settings are not configured. You must either define
- Requested setting DEFAULT_INDEX_TABLESPACE, but settings are not configured
- pycharm 中的 Requested setting CACHES, but settings are not configured.
- Requested setting DATABASES, but settings are not configured. You must either define the environment
- Requested setting TEMPLATE_DEBUG, but settings are not configured.
- django.core.exceptions.ImproperlyConfigured: Requested setting LOGGING_CONFIG, but settings are not
- django中执行py报错Requested setting DEFAULT_INDEX_TABLESPACE, but settings are not configured
- django模板报错Requested setting TEMPLATE_DEBUG, but settings are not configured. You must either define
- ADT20新建项目Android Support library not installed问题
- ADT20新建项目Android Support library not installed问题
- MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error
- ADT20新建项目Android Support library not installed问题
- 编译错误:udev support requested but libudev not installed
- 关于The GPG keys listed for the "***" repository are already installed but they are not corret
- django.core.exceptions.ImproperlyConfigured: Requested setting DEFAULT_INDEX_TABLESPACE的解决办法
- django.core.exceptions.ImproperlyConfigured: Requested setting DEFAULT_INDEX_TABLESPACE的解决办法
- 【maven】ecplise新建maven项目 报错Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin