Please post the contents of your settings file. I guess your settings file is wrongs.
> 在 2019年8月6日,上午8:45,Davin Pore <davinpor...@gmail.com> 写道: > > Could you help me to fix this issue. I encountered while running the system. > > C:\Users\davin.l.pore\Documents\JFETM_BMS\jfetmbox\venv\Scripts\python.exe > C:/Users/davin.l.pore/Documents/JFETM_BMS/JFETM/Box_Cronjob/box/cronjob/b0302_get_folder_file.py > Traceback (most recent call last): > File > "C:/Users/davin.l.pore/Documents/JFETM_BMS/JFETM/Box_Cronjob/box/cronjob/b0302_get_folder_file.py", > line 13, in <module> > from box.models import User > File > "C:\Users\davin.l.pore\Documents\JFETM_BMS\JFETM\Box_Cronjob\box\models.py", > line 17, in <module> > class GroupCompany(models.Model): > File > "C:\Users\davin.l.pore\Documents\JFETM_BMS\jfetmbox\venv\lib\site-packages\django\db\models\base.py", > line 103, in __new__ > app_config = apps.get_containing_app_config(module) > File > "C:\Users\davin.l.pore\Documents\JFETM_BMS\jfetmbox\venv\lib\site-packages\django\apps\registry.py", > line 252, in get_containing_app_config > self.check_apps_ready() > File > "C:\Users\davin.l.pore\Documents\JFETM_BMS\jfetmbox\venv\lib\site-packages\django\apps\registry.py", > line 134, in check_apps_ready > settings.INSTALLED_APPS > File > "C:\Users\davin.l.pore\Documents\JFETM_BMS\jfetmbox\venv\lib\site-packages\django\conf\__init__.py", > line 79, in __getattr__ > self._setup(name) > File > "C:\Users\davin.l.pore\Documents\JFETM_BMS\jfetmbox\venv\lib\site-packages\django\conf\__init__.py", > line 64, in _setup > % (desc, ENVIRONMENT_VARIABLE)) > django.core.exceptions.ImproperlyConfigured: Requested setting > INSTALLED_APPS, but settings are not configured. You must either define the > environment variable DJANGO_SETTINGS_MODULE or call settings.configure() > before accessing settings. > > Process finished with exit code 1 > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-users+unsubscr...@googlegroups.com > <mailto:django-users+unsubscr...@googlegroups.com>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/c7f195d5-7481-43d2-ba87-7a9540286714%40googlegroups.com > > <https://groups.google.com/d/msgid/django-users/c7f195d5-7481-43d2-ba87-7a9540286714%40googlegroups.com?utm_medium=email&utm_source=footer>. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/C297A74A-B1F6-4E07-9E51-62100205F213%40gmail.com.