Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using built-in json lib instead of django.utils.json #154

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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')
Expand All @@ -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')
Expand Down