shamanu4 / dal_admin_filters

Django autocomplete light filters for django admin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using along with dal_queryset_sequence produces AppRegistryNotReady error

sam-ghosh opened this issue · comments

commented

image


INSTALLED_APPS = (
    # django apps
    "django.contrib.sites",
    "dal",  # these two need to be before contrib.admin
    "dal_select2",  # these two need to be before contrib.admin
    "dal_queryset_sequence",
    'dal_admin_filters',
    # 'grappelli',
    "django.contrib.admin",
    "django.contrib.auth",
    "django.contrib.contenttypes",
    "django.contrib.sessions",
    "django.contrib.messages",
    "django.contrib.staticfiles",
    "django.contrib.humanize",
    # 3rd party apps
    "rest_framework",
    "rest_framework.authtoken",
    "rest_framework_swagger",
    "solo",
    "imagekit",
    "django_extensions",
    "corsheaders",
    "django_nose",
    "taggit",
    "taggit_labels",
    "simple_history",
    "el_pagination",
    "user_messages",  # Add on for django.contrib.messages with offline messaging support
    # 'django_messages',
    # 'djcelery_email',
    "viewflow",
    # 'djcelery',
    "storages",
    # 'simple_email_confirmation',
    # 'djoser',
    "dbtemplates",
    "jsoneditor",
    "adminsortable2",
    "crispy_forms",
    "django_tables2",
    "django_tables2_column_shifter",
    "admin_display_fields_settings",
    "bootstrap3",
    "notifications",
    "rangefilter",
    "django_filters",
    "django_celery_beat",
    "oauth2_provider",
    "social_django",
    "rest_framework_social_oauth2",
    "knox",
    "admin_numeric_filter",
    "admin_totals",
    # 'django_celery_results',
    'import_export',
    'mptt',]

Please see error stacktrace below

Unhandled exception in thread started by <function check_errors.<locals>.wrapper at 0x110b3ac80>
Traceback (most recent call last):
  File "/Users/somghosh/.virtualenvs/xenia371/lib/python3.7/site-packages/django/utils/autoreload.py", line 225, in wrapper
    fn(*args, **kwargs)
  File "/Users/somghosh/.virtualenvs/xenia371/lib/python3.7/site-packages/django/core/management/commands/runserver.py", line 109, in inner_run
    autoreload.raise_last_exception()
  File "/Users/somghosh/.virtualenvs/xenia371/lib/python3.7/site-packages/django/utils/autoreload.py", line 248, in raise_last_exception
    raise _exception[1]
  File "/Users/somghosh/.virtualenvs/xenia371/lib/python3.7/site-packages/django/core/management/__init__.py", line 337, in execute
    autoreload.check_errors(django.setup)()
  File "/Users/somghosh/.virtualenvs/xenia371/lib/python3.7/site-packages/django/utils/autoreload.py", line 225, in wrapper
    fn(*args, **kwargs)
  File "/Users/somghosh/.virtualenvs/xenia371/lib/python3.7/site-packages/django/__init__.py", line 24, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/Users/somghosh/.virtualenvs/xenia371/lib/python3.7/site-packages/django/apps/registry.py", line 89, in populate
    app_config = AppConfig.create(entry)
  File "/Users/somghosh/.virtualenvs/xenia371/lib/python3.7/site-packages/django/apps/config.py", line 90, in create
    module = import_module(entry)
  File "/Users/somghosh/.virtualenvs/xenia371/lib/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/Users/somghosh/.virtualenvs/xenia371/lib/python3.7/site-packages/dal_admin_filters/__init__.py", line 2, in <module>
    from dal import autocomplete
  File "/Users/somghosh/.virtualenvs/xenia371/lib/python3.7/site-packages/dal/autocomplete.py", line 57, in <module>
    from dal_queryset_sequence.fields import (
  File "/Users/somghosh/.virtualenvs/xenia371/lib/python3.7/site-packages/dal_queryset_sequence/fields.py", line 3, in <module>
    from dal_contenttypes.fields import (
  File "/Users/somghosh/.virtualenvs/xenia371/lib/python3.7/site-packages/dal_contenttypes/fields.py", line 3, in <module>
    from django.contrib.contenttypes.models import ContentType
  File "/Users/somghosh/.virtualenvs/xenia371/lib/python3.7/site-packages/django/contrib/contenttypes/models.py", line 134, in <module>
    class ContentType(models.Model):
  File "/Users/somghosh/.virtualenvs/xenia371/lib/python3.7/site-packages/django/db/models/base.py", line 87, in __new__
    app_config = apps.get_containing_app_config(module)
  File "/Users/somghosh/.virtualenvs/xenia371/lib/python3.7/site-packages/django/apps/registry.py", line 249, in get_containing_app_config
    self.check_apps_ready()
  File "/Users/somghosh/.virtualenvs/xenia371/lib/python3.7/site-packages/django/apps/registry.py", line 132, in check_apps_ready
    raise AppRegistryNotReady("Apps aren't loaded yet.")
django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet.