• Aymeric Augustin's avatar
    Fixed #24704 -- Made the autoreloader survive SyntaxErrors. · fe6ddb83
    Aymeric Augustin yazdı
    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.
    fe6ddb83
Adı
Son kayıt (commit)
Son güncelleme
.tx Loading commit data...
django Loading commit data...
docs Loading commit data...
extras Loading commit data...
js_tests Loading commit data...
scripts Loading commit data...
tests Loading commit data...
.editorconfig Loading commit data...
.eslintignore Loading commit data...
.eslintrc Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.hgignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.rst Loading commit data...
Gruntfile.js Loading commit data...
INSTALL Loading commit data...
LICENSE Loading commit data...
MANIFEST.in Loading commit data...
README.rst Loading commit data...
package.json Loading commit data...
setup.cfg Loading commit data...
setup.py Loading commit data...