score:1

you need to provide the client in the url:

url(r'^api/chart/data/<str:client>$', chartdata.as_view()),

and then you just have it in your get as a param:

def get(self, request, client):

i'm not sure why you have format=none there. it does not correspond to anything in your urls.py

also, i would recommend not using django rest framework's apiview for something that is not an api view (e.g. you're rendering a page, not providing a rest api endpoint). for that, just use plain django class based views.


Related Query

More Query from same tag