Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Exception in thread django-main-thread:
- Traceback (most recent call last):
- File "/usr/local/lib/python3.8/site-packages/django/utils/translation/trans_real.py", line 194, in _add_installed_apps_translations
- app_configs = reversed(list(apps.get_app_configs()))
- File "/usr/local/lib/python3.8/site-packages/django/apps/registry.py", line 145, in get_app_configs
- self.check_apps_ready()
- File "/usr/local/lib/python3.8/site-packages/django/apps/registry.py", line 136, in check_apps_ready
- raise AppRegistryNotReady("Apps aren't loaded yet.")
- django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet.
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/usr/local/lib/python3.8/threading.py", line 932, in _bootstrap_inner
- self.run()
- File "/usr/local/lib/python3.8/threading.py", line 870, in run
- self._target(*self._args, **self._kwargs)
- File "/usr/local/lib/python3.8/site-packages/django/utils/autoreload.py", line 64, in wrapper
- fn(*args, **kwargs)
- File "/usr/local/lib/python3.8/site-packages/django/core/management/commands/runserver.py", line 110, in inner_run
- autoreload.raise_last_exception()
- File "/usr/local/lib/python3.8/site-packages/django/utils/autoreload.py", line 87, in raise_last_exception
- raise _exception[1]
- File "/usr/local/lib/python3.8/site-packages/django/core/management/__init__.py", line 375, in execute
- autoreload.check_errors(django.setup)()
- File "/usr/local/lib/python3.8/site-packages/django/utils/autoreload.py", line 64, in wrapper
- fn(*args, **kwargs)
- File "/usr/local/lib/python3.8/site-packages/django/__init__.py", line 24, in setup
- apps.populate(settings.INSTALLED_APPS)
- File "/usr/local/lib/python3.8/site-packages/django/apps/registry.py", line 91, in populate
- app_config = AppConfig.create(entry)
- File "/usr/local/lib/python3.8/site-packages/django/apps/config.py", line 244, in create
- app_module = import_module(app_name)
- File "/usr/local/lib/python3.8/importlib/__init__.py", line 118, in import_module
- if name.startswith('.'):
- File "/usr/local/lib/python3.8/site-packages/django/utils/functional.py", line 135, in __wrapper__
- res = func(*self.__args, **self.__kw)
- File "/usr/local/lib/python3.8/site-packages/django/utils/translation/__init__.py", line 94, in gettext
- return _trans.gettext(message)
- File "/usr/local/lib/python3.8/site-packages/django/utils/translation/trans_real.py", line 355, in gettext
- _default = _default or translation(settings.LANGUAGE_CODE)
- File "/usr/local/lib/python3.8/site-packages/django/utils/translation/trans_real.py", line 268, in translation
- _translations[language] = DjangoTranslation(language)
- File "/usr/local/lib/python3.8/site-packages/django/utils/translation/trans_real.py", line 155, in __init__
- self._add_installed_apps_translations()
- File "/usr/local/lib/python3.8/site-packages/django/utils/translation/trans_real.py", line 196, in _add_installed_apps_translations
- raise AppRegistryNotReady(
- django.core.exceptions.AppRegistryNotReady: The translation infrastructure cannot be initialized before the apps registry is ready. Check that you don't make non-lazy gettext calls at import time.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement