ImportError at /accounts/login/

84 views
Skip to first unread message

Miten

unread,
Feb 2, 2012, 5:41:40 AM2/2/12
to Django users
Hi,

I am trying simple generic view + auth and get exception as below.
The dpaste shows traceback. Please guide what am I missing. From
manage shell I am able to import login view fine but when I runserver
and try to go to url it gives the error. Let me know if need more
info.

http://dpaste.com/696518/


ImportError at /accounts/login/

No module named login

Request Method: GET
Request URL: http://127.0.0.1:8000/accounts/login/?next=/event/
Django Version: 1.3.1
Exception Type: ImportError
Exception Value:

No module named login

Exception Location: i:\learn\python\Django-1.3.1\django\utils
\importlib.py in import_module, line 35
Python Executable: \\ms\dist\python\PROJ\core\2.5.4\bin\python.EXE
Python Version: 2.5.4
Python Path:

['I:\\learn\\python\\event',
'\\\\ms\\dist\\python\\PROJ\\core\\2.5.4\\lib\\python2.5\\lib-
dynload',
'\\\\ms\\dist\\python\\PROJ\\core\\2.5.4\\lib\\python2.5',
'\\\\ms\\dist\\python\\PROJ\\core\\2.5.4\\lib',
'i:\\learn\\python\\Django-1.3.1',
'I:\\learn\\python\\event',
'\\\\ms\\dist\\python\\PROJ\\core\\2.5.4\\bin\\python25.zip',
'\\\\ms\\dist\\python\\PROJ\\core\\2.5.4\\DLLs',
'\\\\ms\\dist\\python\\PROJ\\core\\2.5.4\\lib\\plat-win',
'\\\\ms\\dist\\python\\PROJ\\core\\2.5.4\\lib\\lib-tk',
'\\\\ms\\dist\\python\\PROJ\\core\\2.5.4-0\\lib\\python2.5',
'\\\\ms\\dist\\python\\PROJ\\core\\2.5.4-0\\lib\\python2.5\\lib-tk',
'\\\\ms\\dist\\python\\PROJ\\core\\2.5.4-0\\lib\\python2.5\\site-
packages',
'\\\\ms\\dist\\python\\PROJ\\core\\2.5.4-0\\lib\\python2.5\\lib-
dynload',
'\\\\ms\\dist\\python\\PROJ\\core\\2.5.4\\bin',
'\\\\ms\\dist\\python\\PROJ\\core\\2.5.4',
'//ms/dist/python/PROJ/msversion/1.0/lib',
'//ms/dist/python/PROJ/ms.version/prod-2.5/lib']

Server time: Thu, 2 Feb 2012 15:58:44 +0530


Regards,

Miten.

akaariai

unread,
Feb 2, 2012, 10:49:15 AM2/2/12
to Django users
I don't think we are able to help you without more detail. The browser
window should contain the lines which caused the error (when run with
settings.DEBUG=True). Include those lines, and it is more likely that
you get an answer. Including full stack trace of the ImportError is
even better.

- Anssi

Miten

unread,
Feb 2, 2012, 11:41:27 AM2/2/12
to Django users
Hi,

Thanks for reply. I sought help from irc django channel and they
asked for the same. Actually in urls.py in url call we cannot include
views. I corrected it to plain url string and it worked.

Regards,

Miten.
Reply all
Reply to author
Forward
0 new messages