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.7 Errors in application #40

Open
vinaychandra opened this issue May 28, 2014 · 3 comments
Open

Django 1.7 Errors in application #40

vinaychandra opened this issue May 28, 2014 · 3 comments

Comments

@vinaychandra
Copy link

Using this app in django 1.7b4 raises the following error

Traceback (most recent call last):
  File "./manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 427, in execute_from_command_line
utility.execute()
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 391, in execute
django.setup()
  File "/usr/local/lib/python2.7/dist-packages/django/__init__.py", line 21, in setup
apps.populate(settings.INSTALLED_APPS)
  File "/usr/local/lib/python2.7/dist-packages/django/apps/registry.py", line 106, in populate
app_config.import_models(all_models)
  File "/usr/local/lib/python2.7/dist-packages/django/apps/config.py", line 190, in import_models
self.models_module = import_module(models_module_name)
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
  File "build/bdist.linux-x86_64/egg/relationships/models.py", line 8, in <module>
  File "build/bdist.linux-x86_64/egg/relationships/compat.py", line 7, in <module>
  File "/usr/local/lib/python2.7/dist-packages/django/contrib/auth/__init__.py", line 136, in get_user_model
return django_apps.get_model(settings.AUTH_USER_MODEL)
  File "/usr/local/lib/python2.7/dist-packages/django/apps/registry.py", line 187, in get_model
self.check_ready()
  File "/usr/local/lib/python2.7/dist-packages/django/apps/registry.py", line 119, in check_ready
raise RuntimeError("App registry isn't ready yet.")
RuntimeError: App registry isn't ready yet.
@vinaychandra vinaychandra changed the title Django 1.7 Django 1.7 Errors on build May 28, 2014
@vinaychandra vinaychandra changed the title Django 1.7 Errors on build Django 1.7 Errors in application May 28, 2014
@jonhairston
Copy link

@petedrennan
Copy link

Has anyone found a fix for this?

The issue is Another common culprit is django.contrib.auth.get_user_model(). Use the AUTH_USER_MODEL setting to reference the User model at import time.

But, not sure how to adjust the code...

The error is coming from the file referenced above:
File "build/bdist.linux-x86_64/egg/relationships/compat.py", line 7, in

line 7 is User = get_user_model()

Any ideas how to change the code?

@thisiscam
Copy link

It's kinkd of late, but I've prevented this error
thisiscam@4dbc38d
But I still can't use the injected user.relationships.add

maroux pushed a commit to maroux/django-relationships that referenced this issue Feb 25, 2015
…coleifer#40). Fortunately, we don't use any of their hacky things (`user.relationships` like stuff), so I just commented out all of that jazz.
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

4 participants