#14342: Part 2 of the Tutorial -- path format for TEMPLATE_DIR ------------------------------------+--------------------------------------- Reporter: nwokedi | Owner: nobody Status: closed | Milestone: Component: Documentation | Version: 1.2 Resolution: worksforme | Keywords: Stage: Unreviewed | Has_patch: 0 Needs_docs: 0 | Needs_tests: 0 Needs_better_patch: 0 | ------------------------------------+--------------------------------------- Changes (by gabrielhurley):
* status: new => closed * needs_better_patch: => 0 * component: Uncategorized => Documentation * needs_tests: => 0 * needs_docs: => 0 * resolution: => worksforme Comment: Django should find the template provided the following: 1. The template is named correctly, 2. The template is in an `admin` directory 3. The `admin` directory is within a directory named in your TEMPLATE_DIRS setting. I believe the tutorial has proper instructions for accomplishing that if read carefully. In your case, the template is being found at `mysite/polls/templates/admin` as you mention because the generic `django.template.loaders.app_directories.load_template_source` in TEMPLATE_LOADERS is finding it. My guess is that you simply missed a detail in the tutorial or mistyped something in your paths. If you still feel this is a problem, please give us more information about the directory you tried placing the template in, and what exactly your TEMPLATE_DIRS looked like? -- Ticket URL: <http://code.djangoproject.com/ticket/14342#comment:1> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-upda...@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.