I had a problem interpreting the documentation of app_directories.Loader in 
https://docs.djangoproject.com/en/dev/ref/templates/api/#loading-templates(I 
use the dev version of Django). As I read the documentation, I should 
put the templates for an app in

app_name/templates/*.html
>

whereas to get it to work, I had to put them in

app_name/templates/app_name/*.html
>

It also seems like it looks for templates in (which I could see from the 
error message when failing with the first approach)

app_name1/templates/app_name2/*.html


I can see the power of that when having a hierarchy of apps. Am I missing 
something here?

Per-Olof

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/UqR9rCgRwv4J.
To post to this group, send email to django-users@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.

Reply via email to