Check your settings.py for TEMPLATE_DIRS Many thanks,
Serge +380 636150445 skype: skhohlov On Thu, Nov 20, 2014 at 7:48 AM, 顏大剛 <[email protected]> wrote: > Hi, > > I follow the doc to test the login system. I set a view function with > @login_required to show successful login message. > > In the html, a link like: > <li><a href="{% url 'account:login' %}">Login</a></li> > > The URLconf under 'account' namespace contains one url: > url(r'^login/$', 'django.contrib.auth.views.login', name='login',) > > > It shows the exceptions, and I show the traceback here: > > > > > > > > *Template Loader Error:Django tried loading these templates, in this > order:Using loader django.template.loaders.filesystem.Loader:<my > project>/templates/registration/login.html (File does not exist)Using > loader > django.template.loaders.app_directories.Loader:/usr/local/lib/python3.2/dist-packages/django/contrib/admin/templates/registration/login.html > (File does not > exist)/usr/local/lib/python3.2/dist-packages/django/contrib/auth/templates/registration/login.html > (File does not exist)* > I found one login.html in > 'django/contrib/admin/templates/admin/login.html'. > Is it a bug or I miss something? > > Yen > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/CAFnq%3D1iCtD9KYK52VdOnrUtqEoyCP5b8jNiwYspc2M73X7bJ0Q%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CAFnq%3D1iCtD9KYK52VdOnrUtqEoyCP5b8jNiwYspc2M73X7bJ0Q%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CADTRxJPmZWKNd1CE%2BYrtgSwAmD24zwxGoWM%3DaXrO-zaZnOBs0g%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

