Sunday, September 1, 2013

Re: Django-registration reset password templates not getting picked up

TEMPLATE_DIRS needs to have the location of the templates. As long as those templates are being picked up and one is called 'password_reset_form.html' it should work.

One of my apps has this form at:

/my_project/templates_global/registration/password_reset_form.html

In /my_project/my_project/settings.py

PROJECT_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))

TEMPLATE_DIRS = (
    os.path.join(PROJECT_ROOT, 'templates_global')
)

The templates were all copied from django.contrib.admin.templates.registration

K


On Saturday, August 31, 2013 11:02:14 PM UTC-7, Vibhu Rishi wrote:
I am getting a bit of a problem with django-registration

what else do i need to do ? As per the django-registration documentation, the auth_urls.py is supposed to be automatically included with the default backend. But apparently, there is some disconnect here. 

--
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 django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment