server)? Have you looked at the local variables in the trace to see
what template
it is trying to find? Are the permissions on the template such that django can
read it? On the development server, pdb.set_trace() is your friend. (Actually,
I've just learned how to use pdb under mod_wsgi, but you don't really want to
do that unless you can't duplicate your problem under the development server.)
(I like top posting. It keeps me from having to scroll past stuff
I've already read.)
On Fri, Mar 30, 2012 at 8:11 AM, vanderkerkoff <tonmatt@gmail.com> wrote:
> Sorry everyone, but this is driving me crazy
>
> 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
>
> http://pastebin.com/dJ6TJWs1
>
> 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.
>
--
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