Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Fix bug with csrftoken in landing pages using dajaxice.
- Improve reliability handling server errors. - Update documentation - Prepare 0.2 release
- Loading branch information
Jorge Bastida
committed
Jul 3, 2011
1 parent
aea9623
commit 3bdf3ea
Showing
12 changed files
with
118 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<script src="/{{ DAJAXICE_MEDIA_PREFIX }}/dajaxice.core.js" type="text/javascript" charset="utf-8"></script> | ||
<script src="{{ core_url }}" type="text/javascript" charset="utf-8"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
CSRF Token issues | ||
==================== | ||
|
||
.. note:: | ||
New in **django-dajaxice 0.2** | ||
|
||
|
||
The templatetag ``dajaxice_js_import`` ensures that django sets the ``csrftoken`` into the response when we use dajaxice in our templates. | ||
This is the reason behind the new ``django.core.context_processors.request`` requirement in ``TEMPLATE_CONTEXT_PROCESSORS``. This templatetag | ||
forces django to include the ``csrftoken`` in every response that uses a template with this decorator.:: | ||
|
||
{% dajaxice_js_import %} | ||
|
||
Further information: | ||
|
||
* https://github.com/jorgebastida/django-dajaxice/issues/30 | ||
* https://docs.djangoproject.com/en/1.2/ref/contrib/csrf/#ajax |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
from django.shortcuts import render_to_response | ||
from django.shortcuts import render | ||
|
||
|
||
def simple_index(request): | ||
return render_to_response('simple/simple_index.html') | ||
return render(request, 'simple/simple_index.html') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters