I am developing a django app. I had the basic site running, but I had
not yet created any models. I created a model, and now the server
fails to start with "Apps aren't loaded yet"

traceback below. Anyone know what I am doing wrong?

Traceback (most recent call last):
  File "./manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File 
"/usr/local/lib/python2.7/site-packages/django/core/management/__init__.py",
line 353, in execute_from_command_line
    utility.execute()
  File 
"/usr/local/lib/python2.7/site-packages/django/core/management/__init__.py",
line 327, in execute
    django.setup()
  File "/usr/local/lib/python2.7/site-packages/django/__init__.py",
line 18, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/usr/local/lib/python2.7/site-packages/django/apps/registry.py",
line 85, in populate
    app_config = AppConfig.create(entry)
  File "/usr/local/lib/python2.7/site-packages/django/apps/config.py",
line 90, in create
    module = import_module(entry)
  File "/usr/local/lib/python2.7/importlib/__init__.py", line 37, in
import_module
    __import__(name)
  File "/projects/foo/foo/app/scripts/__init__.py", line 3, in <module>
    from tasks import *
  File "/projects/foo/foo/app/scripts/tasks/__init__.py", line 1, in <module>
    from makeworkitemlist import MakeWorkItemList
  File "/projects/foo/foo/app/scripts/tasks/makeworkitemlist.py", line
2, in <module>
    from foo.app.scripts.models import Reports
  File "/projects/foo/foo/app/scripts/models.py", line 3, in <module>
    class Reports(models.Model):
  File "/usr/local/lib/python2.7/site-packages/django/db/models/base.py",
line 94, in __new__
    app_config = apps.get_containing_app_config(module)
  File "/usr/local/lib/python2.7/site-packages/django/apps/registry.py",
line 239, in get_containing_app_config
    self.check_apps_ready()
  File "/usr/local/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.

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CACwCsY6Qw%2BPzCw7%2B1zcmZROUQo%2B79dXTpXPjvwa6gr6s0vZikg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to