I haven't touched django in a couple of months (exams), and a lot has
changed in that time - except for the need of something describing the
user login/logout/registration features that django has.

Finding nothing substantial online except for a vague post about
possibly maybe posting a ticket to suggest patch for something.
Determined to write the thing myself, I started poking in the source
and docs to see how this is all put together.

Heres the problem: on redirecting to the login view I get a
TemplateDoesNotExist exception

django/contrib/admin/templates/registration/login.html (File does not
exist)

On line 27 of django/views/auth/login.py its looking for the template
'registration/login' - which doesn't exist, although it does exist at
'admin/login'

Is this an error in login.py? Probably not I'm thinking ... should I
simply copy+paste these views and templates into my own project and
modify them there? That goes against DRY though and feels ... icky.

Solutions/suggestions anyone?

I intend to write some glue tutorials that bring together the relevant
bits of the authentication and session docs, so if anyone has anything
they think needs addressing - post it!


Alice

Reply via email to