Monday, January 29, 2018

Template Namespace Error (django2)

I'm going through the Mozilla Django tutorial and I can't get the template namespacing to work. If I leave the templates in the "templates" folder, all is well. When I try to move them to the "templates/catalog" folder it's nothing but errors. I think it might have something to with the "base_generic.html" file location. I've compared it to the official Django2 tutorial, made some changes, which I think fixed the error, because it caused different errors. Tutorial here: Mozilla Django2. Mozilla does not mention namespacing, so without attempting to do so, all is well. Any help greatly appreciated.

I know someone will inevitably mention Django Girls. They are still on Django 1, or I probably would have already done it.


Thanks!

--
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/dac47303-a20b-4626-98d2-34a0da644b12%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment