Hello Thomas, On Apr 28, 2:33 pm, Thomas Allen <thomasmal...@gmail.com> wrote: > I have noticed that the first app in my INSTALLED_APPS tuple overrides > all of the others for an ambiguous template name. "accounts" does not > have one, but "dashboard" does, which is why I am seeing what I am > seeing (if I place "ads" above "dashboard", the "ads" template > precedes all others). I thought that an app's view would check its own > templates directory before any others but I guess I was wrong...
The behavior you are seeing is described in < http://docs.djangoproject.com/en/dev/ref/templates/api/#loader-types >, in the "django.template.loaders.app_directories.Loader" section. > is > there a way to override this default top-down lookup behavior? Or some > way to specify my template with greater precision while keeping the > "index.html" filename? You could add a "pages" directory to your templates directory. Something like... ./pages ./pages/templates ./pages/templates/pages And then you would do... return render_to_response( 'pages/index.html'... Toodle-loooooooooo......... creecode -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.