Thursday, February 2, 2012

Re: ImportError at /accounts/login/

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.

On Feb 2, 8:49 pm, akaariai <akaar...@gmail.com> wrote:
> 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
>
> On Feb 2, 12:41 pm, Miten <indiami...@gmail.com> wrote:
>
>
>
>
>
>
>
> > 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.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment