Wednesday, August 31, 2011

Re: Unable to have a template NOT show up

On 31-08-11 22:39, Yves S. Garret wrote:
> When I said you're right, I meant your insight into my spelling
> error.

That is the one thing that's hard in every web framework: find the spots
where something can be wrong when everything *seems* right.

Four common spots in django:

- Typo in (like you had).

- A circular import. Your imports from and
imports from You get an error like "cannot import
yourproject.views", even though ``yourproject/`` is right there
before your eyes :-)

- A url higher up in the urlpatterns that matches *before* the url you
*think* is matching. The url should match perfectly, but you get a
strange error because the wrong view is being called.

- You're depending on some application in your's
"install_requires" list. The application is installed. Why doesn't it
show up? You probably forgot to add it to your INSTALLED_APPS list in
your At least, that happened to me a few times. "I can
import it, why doesn't it work?!?"


Reinout van Rees
"If you're not sure what to do, make something. -- Paul Graham"

You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

No comments:

Post a Comment