Wednesday, June 22, 2016

Re: Please help me with CBV template_name behaviour.

On Tue, Jun 21, 2016 at 10:05 AM, JoeCodeswell <joecodeswell@gmail.com> wrote:
Dear James &  Django-Users,

As an afterthought, I wonder why my misspelling didn't cause an error instead of a "wrong" Template being used?

Any insights?


Not particularly. That should have caused an error. The only way it wouldn't have is if you have (or one of your installed apps has) a file named crudlist.htm inside of a folder named contacts. I'd be interested to see what the debug toolbar had to say while the typo was in place. 

As far as your question about template inheritance earlier, here is the link to the docs:


-James

--
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/CA%2Be%2BciWXD_QamvYw8eRgd2RQ7jbTw6RSgCEarGKkhzpEsWo9AQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment