MariusCC / django-crowdsourcing

Automatically exported from code.google.com/p/django-crowdsourcing
0 stars 0 forks source link

template error with django1.3, python2.7 and crowdsourcing example_app 1.1.33 #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. install crowdsourcing, and related packages on windows 7
2. syncdb worked on sqlite
3. started django runserver error free. On http://127.0.0.1:8000 it reported 
error on templatetags:

What is the expected output? What do you see instead?
I was hoping to see the simple example_app. Instead the error mesg. came up 
(quoted below).

What version of the product are you using? On what operating system?
Windows 7 Home premium; python2.7; django1.3.1; crowdsourcing 1.1.33.

Please provide any additional information below.
The error mesgs:
-----------------
TemplateSyntaxError at /

'crowdsourcing_tags' is not a valid tag library: Template library 
crowdsourcing_tags not found, tried 
django.templatetags.crowdsourcing_tags,django.contrib.admin.templatetags.crowdso
urcing_tags,crowdsourcing.templatetags.crowdsourcing_tags,cms.templatetags.crowd
sourcing_tags

Request Method:     GET
Request URL:    http://127.0.0.1:8000/
Django Version:     1.3.1
Exception Type:     TemplateSyntaxError
Exception Value:    

'crowdsourcing_tags' is not a valid tag library: Template library 
crowdsourcing_tags not found, tried 
django.templatetags.crowdsourcing_tags,django.contrib.admin.templatetags.crowdso
urcing_tags,crowdsourcing.templatetags.crowdsourcing_tags,cms.templatetags.crowd
sourcing_tags

Exception Location: 
    c:\python27\lib\site-packages\django\template\defaulttags.py in load, line 1054
Python Executable:  c:\python27\python.exe
Python Version:     2.7.3
Python Path:    

['C:\\Users\\Anirudh\\Desktop\\django-crowdsourcing-1.1.33-------\\django-crowds
ourcing\\example_app',
 'c:\\python27\\lib\\site-packages\\django_pagination-1.0.7-py2.7.egg',
 'c:\\python27\\lib\\site-packages\\python_dateutil-1.5-py2.7.egg',
 'c:\\python27\\lib\\site-packages\\sqlite3database-0.2.0-py2.7.egg',
 'c:\\python27\\lib\\site-packages\\pip-1.1-py2.7.egg',
 'c:\\python27\\lib\\site-packages\\django_positions-0.4.3-py2.7.egg',
 'C:\\Windows\\system32\\python27.zip',
 'c:\\python27\\DLLs',
 'c:\\python27\\lib',
 'c:\\python27\\lib\\plat-win',
 'c:\\python27\\lib\\lib-tk',
 'c:\\python27',
 'c:\\python27\\lib\\site-packages',
 'c:\\python27\\lib\\site-packages\\PIL',
 'c:\\python27\\lib\\site-packages\\win32',
 'c:\\python27\\lib\\site-packages\\win32\\lib',
 'c:\\python27\\lib\\site-packages\\Pythonwin',
 'c:\\python27\\lib\\site-packages',
 'c:\\python27\\lib\\site-packages\\wx-2.8-msw-ansi',
 'C:\\Users\\Anirudh\\Desktop\\django-crowdsourcing-1.1.33-------\\django-crowdsourcing']

Server time:    Fri, 27 Jul 2012 02:08:57 -0400

Environment:

Request Method: GET
Request URL: http://127.0.0.1:8000/

Django Version: 1.3.1
Python Version: 2.7.3
Installed Applications:
['django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.admin',
 'crowdsourcing',
 'cms']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware')

Template error:
In template 
c:\users\anirudh\desktop\django-crowdsourcing-1.1.33-------\django-crowdsourcing
\example_app\templates\home.html, error at line 1
   'crowdsourcing_tags' is not a valid tag library: Template library crowdsourcing_tags not found, tried django.templatetags.crowdsourcing_tags,django.contrib.admin.templatetags.crowdsourcing_tags,crowdsourcing.templatetags.crowdsourcing_tags,cms.templatetags.crowdsourcing_tags
   1 : <!--  {% load crowdsourcing_tags %}  -->
   2 : <html>
   3 : <head>
   4 :   <title>Example App Home</title>
   5 :   {% include "header_tags.html" %}
   6 : </head>
   7 : <body>
   8 : 
   9 : <p>This page demostrates how to embed surveys and survey reports anywhere on
   10 : your site. To see it in action, set a survey up and make it public.</p>
   11 : {% if latest_survey %}
Traceback:
File "c:\python27\lib\site-packages\django\core\handlers\base.py" in 
get_response
  111.                         response = callback(request, *callback_args, **callback_kwargs)
File 
"C:\Users\Anirudh\Desktop\django-crowdsourcing-1.1.33-------\django-crowdsourcin
g\example_app\cms\views.py" in home
  14.         RequestContext(request))
File "c:\python27\lib\site-packages\django\shortcuts\__init__.py" in 
render_to_response
  20.     return HttpResponse(loader.render_to_string(*args, **kwargs), **httpresponse_kwargs)
File "c:\python27\lib\site-packages\django\template\loader.py" in 
render_to_string
  181.         t = get_template(template_name)
File "c:\python27\lib\site-packages\django\template\loader.py" in get_template
  160.         template = get_template_from_string(template, origin, template_name)
File "c:\python27\lib\site-packages\django\template\loader.py" in 
get_template_from_string
  168.     return Template(source, origin, name)
File "c:\python27\lib\site-packages\django\template\base.py" in __init__
  108.         self.nodelist = compile_string(template_string, origin)
File "c:\python27\lib\site-packages\django\template\base.py" in compile_string
  136.     return parser.parse()
File "c:\python27\lib\site-packages\django\template\base.py" in parse
  239.                     compiled_result = compile_func(self, token)
File "c:\python27\lib\site-packages\django\template\defaulttags.py" in load
  1054.                                           (taglib, e))

Exception Type: TemplateSyntaxError at /
Exception Value: 'crowdsourcing_tags' is not a valid tag library: Template 
library crowdsourcing_tags not found, tried 
django.templatetags.crowdsourcing_tags,django.contrib.admin.templatetags.crowdso
urcing_tags,crowdsourcing.templatetags.crowdsourcing_tags,cms.templatetags.crowd
sourcing_tags

Thank you.
Anirudh

Original issue reported on code.google.com by Anirudh....@gmail.com on 27 Jul 2012 at 6:55

GoogleCodeExporter commented 9 years ago
David:

As you wrote earlier, I looked back on the previous note on similar issue and 
found that there is another line with those (..) dots that, when removed made 
the site come up without error on the tags. It is line 36 of the 
crowdsourcing.py in the templatetags directory. I changed:
from:
from ..crowdsourcing.oembedutils import oembed_expand
to:
from crowdsourcing.oembedutils import oembed_expand

I have not done any formal debugging or tested the site in details yet. But, 
thought to inform and seek advise.

Thanks,

Anirudh

Original comment by Anirudh....@gmail.com on 28 Jul 2012 at 3:26

GoogleCodeExporter commented 9 years ago
This change is in version 1.1.34. Thanks for tracking it down for us.

Original comment by dasmi...@gmail.com on 30 Jul 2012 at 6:56