20👍
Django’s documentation is built using Sphinx and included in their source tree.
From a checked-out copy of Django’s source, just run make
in the docs directory. You can find instructions for getting the source here: http://www.djangoproject.com/download/
- [Django]-Caching query results in django
- [Django]-Proper way to test Django signals
- [Django]-Django REST Framework – pass extra parameter to actions
9👍
You can download offline documentation for Django 1.1, 1.2 and 1.3 in both PDF and HTML from http://sramana.github.com/dod/.
- [Django]-Django Standalone Script
- [Django]-What is the correct way of returning an empty queryset in a Django View?
- [Django]-Can I use a database view as a model in Django?
4👍
In the bottom of right sidebar there are links to zipped HTML version, PDF version and ePub version.
- [Django]-Django queries – id vs pk
- [Django]-Django ignores router when running tests?
- [Django]-Celery task schedule (Ensuring a task is only executed one at a time)
2👍
“Okay, I just did it manually using sphinx-build. It was a pretty bad experience.”
Hmm. I just tried and it was a pretty smooth experience (and I have never done this before). Here’s the Linux recipe:
- “cd” to the directory where your Django 1.2.x download has been extracted (in my case “~/downloads/Django-1.2.1”)
- cd docs
- make latex PAPER=a4
- cd _build/latex
- make all-pdf
And the end result is 1000 page tome of Django goodness!
- [Django]-Django Rest Framework Ordering on a SerializerMethodField
- [Django]-Django {% with %} tags within {% if %} {% else %} tags?
- [Django]-Pytest.mark.parametrize with django.test.SimpleTestCase
1👍
To generate PDF version in Ubuntu, you need to download 700-900 MB of Latex packages.
Even if you are not in a developing country, keeping a local copy of docs is useful. Just in case the Django site is down or when you need to refer to something while traveling.Django docs are written in ReStructuredText (RST) and you need Sphinx tool to generate HTML version
http://sramana.github.com/dod/
- [Django]-Django ERROR (EXTERNAL IP): Invalid HTTP_HOST header: '*.domain.com'
- [Django]-Django: how can I tell if the post_save signal triggers on a new object?
- [Django]-Django-rest-framework + django-polymorphic ModelSerialization