TemplateSyntaxError

125 views
Skip to first unread message

Anurag

unread,
Oct 12, 2011, 12:12:35 PM10/12/11
to Satchmo users
Hi,
I am new to Satchmo and am trying to get the clonesatchmo store up
and running on my windows 7 platform. After several attempts i am
finally stuck at the following django error. I have tried django 1.2.7
as well as django 1.3 versions but still keep getting the same error.

Any guidance/help is seriously welcome.

Thx



Django Version: 1.3.1
Exception Type: TemplateSyntaxError
Exception Value:

Caught Exception while rendering: Found a compiled template that is
incompatible with the deprecated
`django.template.loader.find_template_source` function.

Exception Location: C:\Python27\lib\site-packages\django\template
\loader.py in find_template_source, line 149
Python Executable: C:\Python27\python.exe
Python Version: 2.7.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" %} --> ERROR here
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">

Thomas

unread,
Oct 12, 2011, 12:17:20 PM10/12/11
to satchm...@googlegroups.com

> --
> You received this message because you are subscribed to the Google Groups "Satchmo users" group.
> To post to this group, send email to satchm...@googlegroups.com.
> To unsubscribe from this group, send email to satchmo-user...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/satchmo-users?hl=en.

hi,

check this out: http://www.thoreg.org/log/?p=860

good luck,
TR

------------------------------------------------

http://thoreg.org


hynekcer

unread,
Oct 13, 2011, 11:17:59 PM10/13/11
to Satchmo users
A method 'find_template_source' have been made deprecated in Django
1.2.7 last month, similarly as it is deprecated in Django 1.3 for long
time.

I can not reproduce the problem. What did you do after installation?

Maybe it helps to replace 'find_template_source' by 'load_template' in
the actual django-caching-app-plugins 0.1.3
file app_plugins/management/commands/sync_plugins.py , lines 150 and
170.
Other places are fixed for compatibility with Django 1.3 for long
time.
I would like to reproduce it first to be able to undestand and write
regression test.

It seems that these lines were unused for long time usually but you
activated them by something unknown.
> > For more options, visit this group athttp://groups.google.com/group/satchmo-users?hl=en.

hynekcer

unread,
Oct 13, 2011, 11:39:28 PM10/13/11
to Satchmo users
I am sorry.
right is ... to replace by 'find_template' or 'get_template' -
complicated.
Explain only how to reproduce it.

Chris Moffitt

unread,
Oct 14, 2011, 9:26:12 AM10/14/11
to satchm...@googlegroups.com
Make sure you're using the latest copy of caching-app-plugin - https://bitbucket.org/bkroeze/django-caching-app-plugins

hynekcer

unread,
Oct 16, 2011, 8:17:51 PM10/16/11
to Satchmo users
Chris's advice is the most probable solution.
If anything is configured in tables app_plugins_*, which is very
uncommon, it does not work without a new fix.
Prepared in the last changeset in https://bitbucket.org/bkroeze/django-caching-app-plugins/issue/5/

Hynek

On 14 říj, 15:26, Chris Moffitt <ch...@moffitts.net> wrote:
> Make sure you're using the latest copy of caching-app-plugin -https://bitbucket.org/bkroeze/django-caching-app-plugins
Reply all
Reply to author
Forward
0 new messages