TemplateSyntaxError at / Caught an exception while rendering: app_plugins/plugin_point.html

Issue #1037 on hold
Anonymous created an issue

I've just installed satchmo 0.9 and launched clonesatchmo.py. runserver:

Could it be my setup error?

It shows TemplateError while running: python manage.py: {{{

!python

TemplateSyntaxError at / Caught an exception while rendering: app_plugins/plugin_point.html Request Method: GET Request URL: http://127.0.0.1:8000/ Exception Type: TemplateSyntaxError Exception Value:
Caught an exception while rendering: app_plugins/plugin_point.html Exception Location: C:\Python26\lib\site-packages\django-1.1.1-py2.6.egg\django\template\debug.py in render_node, line 81 Python Executable: C:\Python26\python.exe Python Version: 2.6.4 Python Path: ['D:\webdev\teststore\store', 'C:\Python26\lib\site-packages\apptools-3.3.0-py2.6.egg', 'C:\Python26\lib\site-packages\blockcanvas-3.1.0-py2.6-win32.egg', 'C:\Python26\lib\site-packages\chaco-3.2.0-py2.6-win32.egg', 'C:\Python26\lib\site-packages\codetools-3.1.0-py2.6.egg', 'C:\Python26\lib\site-packages\configobj-4.6.0-py2.6.egg', 'C:\Python26\lib\site-packages\enable-3.2.0-py2.6-win32.egg', 'C:\Python26\lib\site-packages\enthoughtbase-3.0.3-py2.6.egg', 'C:\Python26\lib\site-packages\envisagecore-3.1.1-py2.6.egg', 'C:\Python26\lib\site-packages\envisageplugins-3.1.1-py2.6.egg', 'C:\Python26\lib\site-packages\ets-3.3.0-py2.6.egg', 'C:\Python26\lib\site-packages\etsdevtools-3.0.3-py2.6-win32.egg', 'C:\Python26\lib\site-packages\etsprojecttools-0.5.1-py2.6.egg', 'C:\Python26\lib\site-packages\mayavi-3.3.0-py2.6-win32.egg', 'C:\Python26\lib\site-packages\scimath-3.0.4-py2.6-win32.egg', 'C:\Python26\lib\site-packages\setupdocs-1.0.3-py2.6.egg', 'C:\Python26\lib\site-packages\traits-3.2.0-py2.6-win32.egg', 'C:\Python26\lib\site-packages\traitsbackendqt-3.2.0-py2.6.egg', 'C:\Python26\lib\site-packages\traitsbackendwx-3.2.0-py2.6.egg', 'C:\Python26\lib\site-packages\traitsgui-3.1.0-py2.6.egg', 'C:\Python26\lib\site-packages\setuptools-0.6c11-py2.6.egg', 'C:\Python26\lib\site-packages\scons-1.2.0-py2.6-win32.egg', 'C:\Python26\lib\site-packages\django-1.1.1-py2.6.egg', 'C:\Python26\lib\site-packages\bpython-0.9.6_win_unofficial-py2.6.egg', 'C:\Python26\lib\site-packages\pydot-1.0.2-py2.6.egg', 'C:\Python26\lib\site-packages\pyrex-0.9.8.5-py2.6.egg', 'C:\Python26\lib\site-packages\pip-0.6.3-py2.6.egg', 'C:\Python26\lib\site-packages\pycrypto-2.0.1-py2.6-win32.egg', 'C:\Python26\lib\site-packages\reportlab-2.1.0001-py2.5.egg', 'C:\Python26\lib\site-packages\django_app_plugins-0.1.0-py2.6.egg', 'C:\Python26\lib\site-packages\django_signals_ahoy-0.1_1-py2.6.egg', 'C:\Python26\lib\site-packages\django_threaded_multihost-1.3_3-py2.6.egg', 'C:\Python26\lib\site-packages\satchmo-0.9_0-py2.6.egg', 'C:\WINDOWS\system32\python26.zip', 'C:\Python26\lib\site-packages\orange', 'C:\Python26\lib\site-packages\orange\OrangeWidgets', 'C:\Python26\lib\site-packages\orange\OrangeCanvas', 'C:\Python26\DLLs', 'C:\Python26\lib', 'C:\Python26\lib\plat-win', 'C:\Python26\lib\lib-tk', 'C:\Python26', 'C:\Python26\lib\site-packages', 'C:\Python26\lib\site-packages\itk\module\Python', 'C:\Python26\lib\site-packages\PIL', 'C:\Python26\lib\site-packages\gtk-2.0', 'C:\Python26\lib\site-packages\win32', 'C:\Python26\lib\site-packages\win32\lib', 'C:\Python26\lib\site-packages\Pythonwin', 'C:\Python26\lib\site-packages\wx-2.8-msw-unicode', 'D:\webdev\apps']

Template error

In template c:\python26\lib\site-packages\satchmo-0.9_0-py2.6.egg\satchmo_store\shop\templates\base.html, error at line 12

2 {% block doctype %}<?xml version="1.0" encoding="UTF-8"?> 3 <!DOCTYPE html 4 PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 5 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 6 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> 7 {% endblock %} 8 <head> 9 {% block extra-head %}{% endblock %} 10 {% block stylesheet %}<link rel="stylesheet" href="{{ media_url }}css/style.css" />{% endblock %} 11 <title>{% block title %}{{ shop_name }}{% if pagetitle %}: {{ pagetitle }}{% endif %}{% endblock %}</title> 12 {% plugin_point "page_head" %} 13 </head> 14 {% block body %} 15 <body{% if bodyid %} id="{{ bodyid }}"{% endif %}{% if bodyclass %} class="{{ bodyclass }}"{% endif %}> 16 {% plugin_point "page_top" %} 17 <div id="container"> 18 <div id="top"> 19 <h1>{{ shop_name }}</h1> 20 </div> 21
22 <div id="navbar">

Traceback: File "C:\Python26\lib\site-packages\django-1.1.1-py2.6.egg\django\core\handlers\base.py" in get_response 92. response = callback(request, callback_args, callback_kwargs) File "C:\Python26\lib\site-packages\satchmo-0.9_0-py2.6.egg\satchmo_store\shop\views\home.py" in home 41. return render_to_response(template, context_instance=ctx) File "C:\Python26\lib\site-packages\django-1.1.1-py2.6.egg\django\shortcuts__init__.py" in render_to_response 20. return HttpResponse(loader.render_to_string(*args, kwargs), *httpresponse_kwargs) File "C:\Python26\lib\site-packages\django-1.1.1-py2.6.egg\django\template\loader.py" in render_to_string 108. return t.render(context_instance) File "C:\Python26\lib\site-packages\django-1.1.1-py2.6.egg\django\template__init.py" in render 178. return self.nodelist.render(context) File "C:\Python26\lib\site-packages\django-1.1.1-py2.6.egg\django\template__init.py" in render 779. bits.append(self.render_node(node, context)) File "C:\Python26\lib\site-packages\django-1.1.1-py2.6.egg\django\template\debug.py" in render_node 71. result = node.render(context) File "C:\Python26\lib\site-packages\django-1.1.1-py2.6.egg\django\template\loader_tags.py" in render 97. return compiled_parent.render(context) File "C:\Python26\lib\site-packages\django-1.1.1-py2.6.egg\django\template__init.py" in render 178. return self.nodelist.render(context) File "C:\Python26\lib\site-packages\django-1.1.1-py2.6.egg\django\template__init.py" in render 779. bits.append(self.render_node(node, context)) File "C:\Python26\lib\site-packages\django-1.1.1-py2.6.egg\django\template\debug.py" in render_node 71. result = node.render(context) File "C:\Python26\lib\site-packages\django-1.1.1-py2.6.egg\django\template\loader_tags.py" in render 97. return compiled_parent.render(context) File "C:\Python26\lib\site-packages\django-1.1.1-py2.6.egg\django\template__init.py" in render 178. return self.nodelist.render(context) File "C:\Python26\lib\site-packages\django-1.1.1-py2.6.egg\django\template__init.py" in render 779. bits.append(self.render_node(node, context)) File "C:\Python26\lib\site-packages\django-1.1.1-py2.6.egg\django\template\debug.py" in render_node 81. raise wrapped

Exception Type: TemplateSyntaxError at / Exception Value: Caught an exception while rendering: app_plugins/plugin_point.html

}}}

Comments (7)

  1. Denis

    Installed django-app-plugins once again, then copied manually plugin_point.html, app_plugin.html into PYTHON\Lib\site-packages\django_app_plugins-0.1.0-py2.6.egg\app_plugins\templates\app_plugins directory but no effect, same result

  2. Tay Ray Chuan

    Hi,

    you seem to be running a pretty old version django-app-plugins (0.1.0) - their Google Code page shows 0.1.2rc2. Are you re-installing correctly? (When uninstalling, you need to remove the django_app_plugin....egg folder and mess with your easy-install.pth.)

  3. Anonymous

    I've just installed Satchmo for the first time using the instructions here:

    http://www.satchmoproject.com/docs/dev/new_installation.html

    I ran into exactly this problem. It appears that there is something wrong with the 'forked version' of django-app-plugins recommended on that page. Following the instructions as written there results in an egg of django-app-plugins @v0.1.0 as in the comment from running above.

    Simply removing that installation from site-packages and then running 'easy_install django-app-plugins' appears to make this problem go away.

  4. Chris Moffitt repo owner

    There is indeed a problem with the packaging of that app. The template files may not get installed correctly in some places. There is a ticket out there with a patch - it just hasn't been applied yet.

  5. Log in to comment