chartit / django-chartit

A Django app to plot charts and pivot charts directly from the models. Uses HighCharts and jQuery JavaScript libraries to render the charts on the webpage.
http://django-chartit.mrsenko.com/
Other
492 stars 164 forks source link

'chartit' is not a valid tag library: ImportError raised loading chartit.templatetags.chartit: cannot import name simplejson #33

Closed jbc22 closed 8 years ago

jbc22 commented 9 years ago

I received the following error:

'chartit' is not a valid tag library: ImportError raised loading chartit.templatetags.chartit: cannot import name simplejson Exception Type: TemplateSyntaxError

Django version 1.8.5. Python version 2.7.5.

I saw this, and making the changes did not work: http://stackoverflow.com/questions/23564529/chartit-is-not-a-valid-tag-librarydjango . When making that change, django then complains about: 'NoneType' object has no attribute 'getitem' with the line: {{ alertchart|load_charts:"container" }}

It simply complains about " {% load chartit %}".

grantmcconnaughey commented 8 years ago

Hello. Django-chartit is not compatible with Django 1.7+. I released a fork called django-chartit2. It is now on PyPI.

atodorov commented 8 years ago

This is fixed in 0.2.3, closing.