#692 closed defect (invalid)
TemplateSyntaxError in admin with development server
| Reported by: | Owned by: | Adrian Holovaty | |
|---|---|---|---|
| Component: | Core (Management commands) | Version: | |
| Severity: | major | Keywords: | |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
I have replicated the error I described in this newsgroup posting on a different machine running a different Linux distribution, so I am filing it as a bug.
Error Description
As soon as log in to the admin interface (running on the development server), I get a traceback ending in this error:
File "/usr/lib/python2.4/site-packages/django-1.0.0-py2.4.egg/django/core/template/defaulttags.py", line 627, in do_load
raise TemplateSyntaxError, "'%s' is not a valid tag library" % taglib
TemplateSyntaxError: 'log' is not a valid tag library
Steps to Replicate
- Delete old django egg directory from site-packages.
svn updateto current trunk (I have tried [992] on one machine and [1006] on the other. I was using ~[882] before. This means I am updating to the admin changes of #627).setup.py clean,build, andinstalldjango-admin.py startproject myproject- edit
myproject/settings.py(use sqlite3, add admin toINSTALLED_APPS) - enable admin in
myproject/urls.py cd myprojectdjango-admin.py startapp myapprm -r myapp/settingsdjango-admin.py initdjango-admin.py createsuperuserdjango-admin.py runservermy external ip:8000 --settings='myproject.settings'- log in to the admin site
Change History (2)
comment:1 by , 20 years ago
comment:2 by , 20 years ago
| Resolution: | → invalid |
|---|---|
| Status: | new → closed |
It is mentioned in the docs. See BackwardsIncompatibleChanges:
Delete django/templatetags/*.pyc and django/templatetags/*.pyo, just to be safe.
Note:
See TracTickets
for help on using tickets.
I checked out a fresh copy of the django code from svn and everything works now. So the problem is that
svn updateleft me with an inconsistent source tree. This ticket should be closed, but first I want to ask: is this a peril that should be mentioned in the install docs? Is there a flag that I should have used forsvn update?