yourcelf / django-registration-defaults

Default implementations of the 15 templates required to do full login, logout, registration and password retrieval when using django-registration.
277 stars 77 forks source link

Where to put base.html? #18

Closed nderkach closed 10 years ago

nderkach commented 10 years ago

Hi,

it's not clear where exactly to put base.html when installing, say with pip into a virtualenv.

Is there a configuration option for Django to specify the path to this template?

yourcelf commented 10 years ago

See Django's documentation on the TEMPLATE_DIRS and TEMPLATE_LOADERS settings:

https://docs.djangoproject.com/en/dev/ref/settings/#template-dirs

By default, Django uses the "filesystem loader" and "app directories loader" -- it will look for a folder named "templates" in each app, and in the list of directories specified in TEMPLATE_DIRS. A file named "base.html" in the root of any of those directories will work (Django will use the first matching file it comes across).