summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2015-08-05 11:07:36 +0200
committerAymeric Augustin <aymeric.augustin@m4x.org>2015-08-29 23:12:08 +0200
commitcc14d51ee8325c82665cb98af4dfe49aab565d52 (patch)
treefe39cc4516e833140c4e456c35919971a4303dd3 /docs/ref
parentdc8786ce9413f5d8553997a6b957886694205fa2 (diff)
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. Backport of fe6ddb837d from master
Diffstat (limited to 'docs/ref')
0 files changed, 0 insertions, 0 deletions