Skip to content

Commit

Permalink
Merge pull request #11 from caleb15/patch-1
Browse files Browse the repository at this point in the history
Remove non-ascii characters from readme
  • Loading branch information
skrater authored Jul 21, 2020
2 parents ef2e2b3 + 2cb709f commit 7db4c31
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ django-pjax |Build Status| |Version|

An improvement of Django-PJAX_: The Django helper for jQuery-PJAX.

Whats PJAX?
What's PJAX?
------------

PJAX is essentially AHAH_ ("Asynchronous HTML and HTTP"), except with
Expand Down Expand Up @@ -52,8 +52,8 @@ Usage
First, read about `how to use jQuery-PJAX`_ and pick one of the
techniques there.

Next, make sure the views youre PJAXing are using TemplateResponse_.
You cant use Django-PJAX with a normal ``HttpResponse``, only
Next, make sure the views you're PJAXing are using TemplateResponse_.
You can't use Django-PJAX with a normal ``HttpResponse``, only
``TemplateResponse``.

PJAX decorator
Expand Down Expand Up @@ -91,7 +91,7 @@ More formally: if the request is a PJAX request, the template used in
your ``TemplateResponse`` will be replaced with one with ``-pjax``
before the file extension. So ``template.html`` becomes
``template-pjax.html``, ``my.template.xml`` becomes
``my.template-pjax.xml``, etc. If theres no file extension, the
``my.template-pjax.xml``, etc. If there's no file extension, the
template name will just be suffixed with ``-pjax``.

You can also manually pick a PJAX template by passing it as an argument
Expand Down Expand Up @@ -120,7 +120,7 @@ decorators to define the template for multiple containers:
Class-based view
~~~~~~~~~~~~~~~~
If youd like to use Django 1.3s class-based views instead, a PJAX
If you'd like to use Django 1.3's class-based views instead, a PJAX
Mixin class is provided as well. Simply use ``PJAXResponseMixin`` where
you would normally have used ``TemplateResponseMixin``, and your
``template_name`` will be treated the same way as above.
Expand All @@ -140,7 +140,7 @@ you want a specific template used for PJAX responses:
def get(self, request):
return self.render_to_response({'my': 'context'})
Thats it!
That's it!
Using Template Extensions
-------------------------
Expand Down Expand Up @@ -177,7 +177,7 @@ you can do so as follows:
def my_view(request):
return TemplateResponse(request, "template.html", {'my': 'context'})
Using this approach you dont need to create many ``*-pjax.html`` files.
Using this approach you don't need to create many ``*-pjax.html`` files.
If you have a collision with the variable name ``parent`` you can
specify the context variable to use as the third parameter to pjaxtexd,
Expand Down

0 comments on commit 7db4c31

Please sign in to comment.