#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 update
to 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
, andinstall
django-admin.py startproject myproject
- edit
myproject/settings.py
(use sqlite3, add admin toINSTALLED_APPS
) - enable admin in
myproject/urls.py
cd myproject
django-admin.py startapp myapp
rm -r myapp/settings
django-admin.py init
django-admin.py createsuperuser
django-admin.py runserver
my external ip:8000 --settings='myproject.settings'
- log in to the admin site
Change History (2)
comment:1 by , 19 years ago
comment:2 by , 19 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 update
left 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
?