Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Fixed #24704 -- Made the autoreloader survive SyntaxErrors.

With this change, it's expected to survive anything except errors
that make it impossible to import the settings. It's too complex
to fallback to a sensible behavior with a broken settings module.

Harcoding things about runserver in ManagementUtility.execute is
atrocious but it's the only way out of the chicken'n'egg problem:
the current implementation of the autoreloader primarily watches
imported Python modules -- and then a few other things that were
bolted on top of this design -- but we want it to kick in even if
the project contains import-time errors and django.setup() fails.

At some point we should throw away this code and replace it by an
off-the-shelf autoreloader that watches the working directory and
re-runs `django-admin runserver` whenever something changes.
latest commit fe6ddb837d
@aaugustin aaugustin authored
..
Failed to load latest commit information.
_ext Removed obsolete literals_to_xrefs.py script.
_theme Added white-space: pre-wrap; to docs code blocks to match docs.dp.com.
faq Updated various links in docs
howto Fixed #25302 -- Prevented BrokenLinkEmailsMiddleware from reporting 4…
internals Recommend relative imports within Django components.
intro Fixed #25153 -- Moved 'polls' first in tutorial's INSTALLED_APPS.
man Fixed #23903 -- Configured Sphinx to autogenerate django-admin manpage
misc Updated release process for new release schedule.
ref Fixed #25262 -- Removed the enable_comments field from FlatPageAdmin.
releases Fixed #24704 -- Made the autoreloader survive SyntaxErrors.
topics Fixed #22634 -- Made the database-backed session backends more extens…
Makefile Added an "htmlview" target to open docs after building them.
README Removed sudo from pip commands in docs.
conf.py Fixed #23903 -- Configured Sphinx to autogenerate django-admin manpage
contents.txt Removed an obsolete documentation page about admin style customization.
glossary.txt Updated Wikipedia links to use https
index.txt Fixed #24961 -- Added links to all auth docs pages from index.
make.bat Fixed #19516 - Fixed remaining broken links.
spelling_wordlist Added 'subtransactions' to spelling wordlist.

README

The documentation in this tree is in plain text files and can be viewed using
any text file viewer.

It uses ReST (reStructuredText) [1], and the Sphinx documentation system [2].
This allows it to be built into other forms for easier viewing and browsing.

To create an HTML version of the docs:

* Install Sphinx (using ``pip install Sphinx`` or some other method)

* In this docs/ directory, type ``make html`` (or ``make.bat html`` on
  Windows) at a shell prompt.

The documentation in _build/html/index.html can then be viewed in a web browser.

[1] http://docutils.sourceforge.net/rst.html
[2] http://sphinx-doc.org/
Something went wrong with that request. Please try again.