Closed bschollnick closed 13 years ago
Template error
In template /Users/Benjamin/dropbox/Programming/django/Versions2/VersionCheck/templates/indigo-plugin-details.html, error at line 40
'ratings_tags' is not a valid tag library: ImportError raised loading ratings.templatetags.ratings_tags: cannot import name forms
30
31
32
Environment:
Request Method: GET Request URL: http://127.0.0.1:8000/Details/External%20IP%20Address%20&%20Dynamic%20DNS%20Updater
Django Version: 1.3 Python Version: 2.7.1 Installed Applications: ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.humanize', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'easy_thumbnails', 'guardian', 'ratings', 'userena', 'VersionCheck', 'VersionCheck.profiles', 'userena.contrib.umessages'] Installed Middleware: ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.locale.LocaleMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'userena.middleware.UserenaLocaleMiddleware')
Template error: In template /Users/Benjamin/dropbox/Programming/django/Versions2/VersionCheck/templates/indigo-plugin-details.html, error at line 40 'ratings_tags' is not a valid tag library: ImportError raised loading ratings.templatetags.ratings_tags: cannot import name forms 30 :
31 :
32 :
33 :
34 :
35 :
36 :
37 :
38 :
39 :
40 : {% load ratings_tags %}
41 :
42 : {% get_rating_score for film as score %}
43 :
44 : {% if score %}
45 : Average score: {{ score.average|floatformat }}
46 : Number of votes: {{ score.num_votes }}
47 : {% else %}
48 : How sad: nobody voted {{ film }}
49 : {% endif %}
50 :
Traceback: File "/Library/Python/2.7/site-packages/django/core/handlers/base.py" in get_response
Exception Type: TemplateSyntaxError at /Details/External IP Address & Dynamic DNS Updater Exception Value: 'ratings_tags' is not a valid tag library: ImportError raised loading ratings.templatetags.ratings_tags: cannot import name forms
v0.03 fixes this issue. Thanks for the quick response...
Folks,
I'm new to Django, so I suspect that I have missed something... But I have followed the install process, and when I go to now open a page on my Django app, I am getting an error:
ViewDoesNotExist at /accounts/bschollnick3/activate/bed5f5b57666dc2515684f8cd7155d9396ecc90e/ Could not import ratings.views. Error was: cannot import name forms Request Method: GET Request URL: http://127.0.0.1:8000/accounts/bschollnick3/activate/bed5f5b57666dc2515684f8cd7155d9396ecc90e/ Django Version: 1.3 Exception Type: ViewDoesNotExist Exception Value:
Could not import ratings.views. Error was: cannot import name forms
As far as I can tell, everything is configured right...
Any suggestions?