Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Django 1.9 support? #23

Open
rrauenza opened this issue Mar 10, 2016 · 1 comment
Open

Django 1.9 support? #23

rrauenza opened this issue Mar 10, 2016 · 1 comment

Comments

@rrauenza
Copy link

When incorporating this into a Django 1.9 project, I get the following error:

django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet.

Traceback (most recent call last):
  File "./manage.py", line 14, in <module>
    execute_from_command_line(sys.argv)
  File "/proj/virtualenv-2.7.5/lib/python2.7/site-packages/django/core/management/__init__.py", line 353, in execute_from_command_line
    utility.execute()
  File "/proj/virtualenv-2.7.5/lib/python2.7/site-packages/django/core/management/__init__.py", line 327, in execute
    django.setup()
  File "/proj/virtualenv-2.7.5/lib/python2.7/site-packages/django/__init__.py", line 18, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/proj/virtualenv-2.7.5/lib/python2.7/site-packages/django/apps/registry.py", line 85, in populate
    app_config = AppConfig.create(entry)
  File "/proj/virtualenv-2.7.5/lib/python2.7/site-packages/django/apps/config.py", line 90, in create
    module = import_module(entry)
  File "/usr/lib64/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/proj/virtualenv-2.7.5/lib/python2.7/site-packages/simple_audit/__init__.py", line 1, in <module>
    from .signal import register
  File "/proj/virtualenv-2.7.5/lib/python2.7/site-packages/simple_audit/signal.py", line 9, in <module>
    from .models import Audit, AuditChange
  File "/proj/virtualenv-2.7.5/lib/python2.7/site-packages/simple_audit/models.py", line 9, in <module>
    from .managers import AuditManager
  File "/proj/virtualenv-2.7.5/lib/python2.7/site-packages/simple_audit/managers.py", line 3, in <module>
    from django.contrib.contenttypes.models import ContentType
  File "/proj/virtualenv-2.7.5/lib/python2.7/site-packages/django/contrib/contenttypes/models.py", line 161, in <module>
    class ContentType(models.Model):
  File "/proj/virtualenv-2.7.5/lib/python2.7/site-packages/django/db/models/base.py", line 94, in __new__
    app_config = apps.get_containing_app_config(module)
  File "/proj/virtualenv-2.7.5/lib/python2.7/site-packages/django/apps/registry.py", line 239, in get_containing_app_config
    self.check_apps_ready()
  File "/proj/virtualenv-2.7.5/lib/python2.7/site-packages/django/apps/registry.py", line 124, in check_apps_ready
    raise AppRegistryNotReady("Apps aren't loaded yet.")
django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet.
@kobymeir
Copy link

This project currently doesn't support Django 1.9
Please have a look at this fork:
https://github.com/stratasan/django-simple-audit/commits/master

And this is the specific commit (stratasan@4266d2d) that adds support to Django 1.9, Have a look specifically at this file for usage example testproject/simple_app/apps.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants