Re: Template Namespace Error (django2)

2018-01-30 Thread Carl Brubaker
So I'm not exactly sure what happened. I made a second "locallibrary" 
program that worked and then compared all of my files, because after I 
tried to change my original one back to the way Mozilla lays it out, it 
still wouldn't work. When I repasted the catalog/views.py file contents, it 
worked again. I then went one step at a time to make the namespacing, and 
now it works just fine.

-- 
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+unsubscr...@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/4417c901-8c4b-41a4-8ae2-f70d0f97fb62%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Template Namespace Error (django2)

2018-01-29 Thread Carl Brubaker
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+unsubscr...@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.