1
0
mirror of https://github.com/django/django.git synced 2025-01-26 02:00:08 +00:00
Aymeric Augustin fe6ddb837d 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.
2015-08-29 20:49:56 +02:00
..
2015-08-08 12:02:32 +02:00
2015-08-08 12:02:32 +02:00
2015-08-08 12:02:32 +02:00
2015-06-05 08:24:53 -04:00
2015-08-08 12:02:32 +02:00
2015-05-01 16:24:39 -04:00
2015-05-20 13:48:06 -04:00
2015-08-18 19:52:45 -04:00