- 博客(2)
- 资源 (2)
- 问答 (3)
- 收藏
- 关注
原创 读取django中自定义参数
settings.py配置文件中写入自定义参数自定义参数 IP_LOCAL(变量字母需要大写)在视图函数views中from django.conf import settingsprint(settings.IP_LOCAL)第二种, 直接导入setting文件将settings.py当成一个一般的python模块...
2020-02-19 17:46:31 468
原创 django报错:django.core.exceptions.ImproperlyConfigured: 处理办法
django报错:django.core.exceptions.ImproperlyConfigured:Requested setting DATABASES, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or callsett...
2020-02-19 17:43:08 9563 2
TA创建的收藏夹 TA关注的收藏夹
TA关注的人