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

Avoid user model access on import on django 1.7 #28

Closed
wants to merge 1 commit into from

Conversation

EnTeQuAk
Copy link
Contributor

No description provided.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.23%) when pulling c9ab74d on EnTeQuAk:bugfix/django1.7 into 57614fa on Bouke:master.

@Bouke
Copy link
Collaborator

Bouke commented Dec 28, 2014

Why is it an issue for you that the User model is being accessed?

@EnTeQuAk
Copy link
Contributor Author

It's an issue how django is being setup, in-case the modules are imported before django got configured (django.setup()) you usually run into a django.core.exceptions.AppRegistryNotReady.

@EnTeQuAk
Copy link
Contributor Author

Also see https://code.djangoproject.com/ticket/22872 with a more detailed explanation.

@Bouke Bouke closed this in 044b754 Jan 4, 2015
@EnTeQuAk
Copy link
Contributor Author

EnTeQuAk commented Jan 4, 2015

Awesome, thanks a lot for merging this!

@Bouke
Copy link
Collaborator

Bouke commented Jan 4, 2015

And thank you for your contribution!

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

Successfully merging this pull request may close these issues.

None yet

3 participants