Django Admin site TemplateSyntaxError at /admin/: name not defined
It seems like an error in the admin.py file for your app.
It may be a missing import, or even a typo, but it's hard to tell without any code. It would be great if you could post your admin.py file so we can take a look.
TemplateSyntaxErrors in Django are terrible, they almost never tell you what the real problem is. In this case, for example, the template is part of Django, but the error is probably something in your admin file, which Django reads to create the admin interface. The traceback is too deep to find out right away where in your code the problem is.
I have an issue where, when I log in to the Django admin site, I get a template syntax error in /Library/Python/2.6/site-packages/django/template/debug.py in render_node, line 81.
I can't find out how to solve this as it is part of Django, I didn't write the code and I have no idea how it works.
This did work fine up until a few days ago when I last tried it.
The error is:

Caught an exception while rendering: name 'pest' is not defined
Where pest is the name of my project. As far as I know, I have all the apps in my project installed correctly.
Thanks in advance!