Hi All,
Working my way through the Django tutorials and I've run into a bit of
snag on tutorial 2. After enabling the admin module, I get the
following error when I try to view any of the items in the interface
(i.e, if I click on "Polls")
"admin_list' is not a valid tag library: Could not load template
library from django.templatetags.admin_list, cannot import name
isleap"
Environment:
Request Method: GET
Request URL: http://localhost:8000/admin/polls/poll/
Django Version: 0.97-pre-SVN-7049
Python Version: 2.5.1
Installed Applications:
['django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.admin',
'portablehole.polls']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.middleware.doc.XViewMiddleware')
Template error:
In template
f:\python25\lib\site-packages\django\contrib\admin\templates\admin\change_list.html,
error at line 2
'admin_list' is not a valid tag library: Could not load template
library from django.templatetags.admin_list, cannot import name isleap
1 : {% extends "admin/base_site.html" %}
2 : {% load adminmedia admin_list i18n %}
3 : {% block stylesheet %}{% admin_media_prefix
%}css/changelists.css{% endblock %}
4 : {% block bodyclass %}change-list{% endblock %}
5 : {% if not is_popup %}{% block breadcrumbs %}{% trans "Home" %} ›
{{ cl.opts.verbose_name_plural|capfirst|escape }}{% endblock
%}{% endif %}
6 : {% block coltype %}flex{% endblock %}
7 : {% block content %}
8 :
9 : {% block object-tools %}
10 : {% if has_add_permission %}
11 : {% blocktrans with
cl.opts.verbose_name|escape as name %}Add {{ name }}{% endblocktrans
%}
12 : {% endif %}
Traceback:
File "" in ?
Exception Type: TemplateSyntaxError at /admin/polls/poll/
Exception Value: 'admin_list' is not a valid tag library: Could not
load template library from django.templatetags.admin_list, cannot
import name isleap
Has anybody seen this before? If so, do you know how to fix it?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---