From afb0ad3e2c9575e99f3c6b2a5d8777b0bddd0f3f Mon Sep 17 00:00:00 2001 From: Mounir Date: Wed, 18 Nov 2015 14:13:56 +0100 Subject: [PATCH] Using built-in json lib instead of django.utils.json django.utils.json do not exists any more (checked on django 1.8 and 1.9) --- docs/quickstart.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/quickstart.rst b/docs/quickstart.rst index 1ec46bc..e39467c 100644 --- a/docs/quickstart.rst +++ b/docs/quickstart.rst @@ -14,7 +14,7 @@ Inside this file create a simple function that return json.:: Now you'll need to register this function as a dajaxice function using the ``dajaxice_register`` decorator:: - from django.utils import json + import json from dajaxice.decorators import dajaxice_register @dajaxice_register @@ -46,7 +46,7 @@ How can I do a GET request instead of a POST one? When you register your functions as ajax functions, you can choose the http method using:: - from django.utils import json + import json from dajaxice.decorators import dajaxice_register @dajaxice_register(method='GET') @@ -61,7 +61,7 @@ Can I combine both? Yes! You can register a function as many times as you want, for example:: - from django.utils import json + import json from dajaxice.decorators import dajaxice_register @dajaxice_register(method='POST', name='user.update')