peopledoc / django-chartjs

Django Class Based Views to generate Ajax charts js parameters.
Other
404 stars 112 forks source link

Readme doesn't explain what to change in urls.py #51

Closed andybak closed 4 years ago

andybak commented 4 years ago

It might be obvious to you but it won't be to some.

edras commented 4 years ago

I installed this plugin today and it works fine. in my urls.py I added two entries:

  1. Entry to call templateView: path('url_chart_path', TemplateView.as_view(template_name='chart.html'), name='some_name'),
  2. Entry for the AJAX request called in 'chart.html' path('json_path', views.LineChartJSONView.as_view(), name='line_chart_json'),
Natim commented 4 years ago

@edras do you feel like adding that in the README?

edras commented 4 years ago

Ok @Natim, it is done!

Natim commented 4 years ago

Fixed in 5a4f1e0ca53f1296677bbd3da2443a650aa1a401