Django for Designers: Difference between revisions

→‎Templates and links for login/logout/etc: Remove use of 'touch', which won't work for Windows users
imported>Paulproteus
imported>Paulproteus
(→‎Templates and links for login/logout/etc: Remove use of 'touch', which won't work for Windows users)
Line 1,237:
Run your dev server and try that. What error do you see?
 
While there is a built-in login view, there is no built-in login template. We need to build one for it. While we could put it anywhere and tell login explicitly where to look, by default the login view expects the template to reside at templates/registration/login.html. So we may as well put it there. (We'll use the ''touch'' command, which creates it as a blank file.)
 
<source lang="bash">
Line 1,244:
# in django-for-designers/myproject/bookmarks/templates
$ mkdir registration
$ touch registration/login.html
</source>
 
OpenCreate upa yournew file within the new loginregistration templatedirectory called ''login.html'', and put this inside:
 
<source lang="html4strict">
Anonymous user