https://docs.djangoproject.com/en/1.2/topics/auth/
urls.py
(r'^accounts/login/$', 'django.contrib.auth.views.login'),
view.py
if pg.registration_required and not request.user.is_authenticated():
return HttpResponseRedirect('/accounts/login/?next=%s' %
request.path)
Have I read the documentation wrong? I've created a registration
folder in my templates folder and a login.html file in there, but
always with the template not found error
Any tips or help greatly appreciated
--
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