| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Refs #24704.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
This also fixes a test failure on Python 2 when Django is installed in a
non-ASCII path. This problem cannot happen on Python 3.
|
|
|
|
|
|
|
| |
* When some old files contain errors, the second call to
gen_filenames() should return them.
* When some new files contain errors, the first call to
gen_filenames(only_new=True) should return them.
|
|
|
|
|
|
|
|
|
|
|
|
| |
using inotify polling
Commit 15f82c7 ("used pyinotify as change detection system when
available") introduced a regression where editing a file in vim with
default settings (writebackup=auto) no longer causes the dev server
to be restarted. On a write, vim moves the monitored file to a backup
path and then creates a new file in the original. The new file is not
monitored as it has a different inode. Fixed this by also watching for
inotify events IN_DELETE_SELF and IN_MOVE_SELF.
|
| |
|
| |
|
|
|
|
| |
Django imports threading in many other places without fallback.
|
|
|
|
|
|
| |
a file.
Thanks Collin Anderson for the report and hirokiky for the fix.
|
|
|
|
|
|
|
|
| |
monitoring
This fixes a regression introduced in 6d302f639.
Thanks lorinkoz at gmail.com for the report, Collin Anderson
for the initial patch and Simon Charette for the review.
|
| |
|
|
|
|
| |
Refs #9722. Thanks Tim Graham for the review.
|
| |
|
|
|
|
|
|
|
|
| |
changed
No need to restart the server when a translation file changes.
Refs #9523. Thanks artscoop for the report and Tim Graham for
the review.
|
| |
|
|
|
|
|
| |
This reverts commit c45607e9395ffd05c2cff454fdb55b3ab05dc0e3, reversing
changes made to 9769337ca855f4831c855d6663ff3f688ee1652d.
|
| |
|
|
|
|
| |
Refs #21049. Thanks quinox for the report.
|
|
|
|
|
|
| |
Also renamed app_cache to apps and "app cache" to "app registry".
Deprecated AppCache.app_cache_ready() in favor of Apps.ready().
|
|
|
|
| |
Reverted 4a56a93cc458e9ab4dcab95d9f5067d4975dd1a2.
|
|
|
|
| |
Used the app cache's get_app_configs() method instead.
|
| |
|
|
|
|
| |
Thanks Loic Bistuer.
|
|
|
|
| |
which caused an infinite loop.
|
|
|
|
| |
utils.importlib
|
|
|
|
| |
backported file
|
| |
|
|
|
|
|
|
|
| |
translations
Django also uses locales provided by apps, which also might change. Also when
i18n is disabled, there is no need for watching translation files.
|
|
|
|
| |
Thanks Bouke Haarsma for the report.
|
| |
|
|
|
|
|
|
|
|
| |
Otherwise the kqueue-based autoreloader may not see changes to files
that weren't imported when the server started.
Thanks Bouke Haarsma for the report and Loïc Bistuer for locating the
problem.
|
| |
|
| |
|
|\
| |
| | |
Correct flake8 violation E261
|
| | |
|
|/ |
|
|
|
|
|
|
| |
files change
Thanks to Krzysztof Kulewski for the initial patch.
|
|
|
|
|
|
| |
autoreloader.
Refs #21356. Thanks Loïc.
|
|
|
|
| |
This seems to avoid multiple reloads.
|
| |
|
|
|
|
|
|
|
|
|
| |
when available
Used pyinotify (when available) to replace the "pool-every-one-second"
mechanism in `django.utils.autoreload`.
Thanks Chris Lamb and Pascal Hartig for work on the patch.
|
| |
|
|
|
|
|
|
|
| |
* Removed trailing whitespace.
* Added newline to EOF if missing.
* Removed blank lines at EOF.
* Removed some stray tabs.
|
|
|
|
|
|
| |
Changed th system module values check to return a list.
In Python 3 it returns a dict_view which could occassionally produce
a runtime error of "dictionary changed size during iteration".
|
|
|
|
|
|
|
|
| |
as None.
Useful under Jython. Thanks Thomas Bartelmess for the report and patch.
Ref #9589.
|
|
|
|
| |
Refs #9589.
|
|
|
|
|
|
| |
in the presence of a wider variety of code errors.
Thanks goes to contributor with Trac user 'berto' for the patch.
|
|
|
|
|
|
| |
This commit fixes the auto-reload of the development server.
I should have done that change in ca07fda2.
|
|
|
|
|
| |
This is more idiomatic and avoids returning a list on Python 2 and
an iterator on Python 3.
|
|
|
|
|
| |
xrange/range will be dealt with in a separate commit due to the huge
number of changes.
|