I got the same error after installing the charts package. Because Django 
Python is looking in the wrong places for the charts package.
You need to make sure your PYTHONPATH is pointing to the place where you 
installed the charts package. 

That depends if you have a virtualenv set up (its a good idea), or if not 
just append it to your PYTHONPATH variable, with 

    export PYTHONPATH=$PYTHONPATH:<locations of files>

in my case it was in 
~/home/virtual_env_django_1.6/lib/python2.7/site-packages/

(That's assuming you are on Linux using bash). You do the same thing on 
windows, but i can't remember where you go to set environment variables.



On Monday, 27 April 2009 23:41:50 UTC+2, David Tussey wrote:
>
> I'm trying to use a Django template to publish a simple line chart. 
>  Novice programmer.  How do I do what's described below?  I tried adding a 
> line to the setup.py file in Google App Engine (attached), but get an error 
> which looks like a path problem.  Any help is appreciated.  Thanks. 
>
> TemplateSyntaxError: 'charts' is not a valid tag library: Could not load 
> template library from django.templatetags.charts, No module named charts
>
>
> Info on Django "Chart" in a template: 
> http://code.google.com/p/google-chartwrapper/wiki/TemplatingLanguages
>  says:
> Django <http://docs.djangoproject.com/en/dev/topics/templates/>
>
> The wrapper comes with a Django templatetag for easy insertion of charts 
> into your Django templates. Here is an example from the 
> ChartExamples<http://code.google.com/p/google-chartwrapper/wiki/ChartExamples>
>
> {% load charts %}
> {% chart  Line fohmnytenefohmnytene  encoding=simple  %}
>
>     {% size 200 100  %}
>
>     {% axes type xy  %}
>
>     {% axes label April May June  %}
>
>     {% axes label None  50+Kb  %}
> {% endchart %}
>
> For more information see the 
> DjangoExtension<http://code.google.com/p/google-chartwrapper/wiki/DjangoExtension>
>  page.
>
>
> *===> Which says:*
>
> DjangoExtension  
> Extending the wrapper to Django
>  Installation
>
> Add the following app to your Django INSTALLED_APPS in your settings.py 
> file like so:
>
> ...
> INSTALLED_APPS = ('GChartWrapper.charts',...)
> ...
>
> Then you can use the templatetag in any of your templates.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Chart API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-chart-api.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to