NameError - when trying to login with e-mail address (import missing)
NameError at /admin/
global name 'User' is not defined
Request Method: POST
Request URL: http://127.0.0.1:8000/admin/
Exception Type: NameError
Exception Value: global name 'User' is not defined
Exception Location: /.../django/contrib/admin/sites.py in login, line 228
Python Executable: /opt/local/Library/Frameworks/Python.framework/Versions/2.4/Resources/Python.app/Contents/MacOS/Python
Python Version: 2.4.4
User model class is not imported. A simple fix is attached.
Change History
(5)
Summary: |
NameError - when trying to login with e-mail address (import mis) → [patch] NameError - when trying to login with e-mail address (import missing)
|
Summary: |
[patch] NameError - when trying to login with e-mail address (import missing) → NameError - when trying to login with e-mail address (import missing)
|
Keywords: |
nfa-blocker added
|
Triage Stage: |
Unreviewed → Ready for checkin
|
Resolution: |
→ fixed
|
Status: |
new → closed
|
(Please don't add [patch] to titles. It makes them less readable. We already have the "has_patch" checkbox for this.)