Friday, August 7, 2009

Difficult errors to debug in Django for Django noobs..

Got this as an debug template page today:

TemplateSyntaxError at /admin/

Caught an exception while rendering: name 'User' is not defined


After some digging around and frustration, I finally figured it out. I had created a new app for my project called `newsbin`, then created a model and views and set the views up in urls.py, but I had not yet added `newsbin` to the installed apps section of settings.py. Thus it gave the above error.

No comments:

Post a Comment