| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
symlinks.
|
|
|
|
|
|
|
|
| |
parallel.
This requires that each test never alters files in static directories
collected by other tests. The alternative is to add a temporary
directory to STATICFILES_DIRS or a new app to INSTALLED_APPS.
|
| |
|
| |
|
|
|
|
| |
static files have clashing names
|
| |
|
| |
|
|
|
|
| |
STATIC_ROOT dir doesn't exist.
|
| |
|
|
|
|
|
|
|
| |
Dropped the DJANGO_TEST_TEMP_DIR environment variable.
Before this change, proper removal depended on the developer passing
dir=os.environ['DJANGO_TEST_TMP_DIR'] to tempfile functions.
|
|
|
|
|
|
|
|
|
|
| |
The stated reason for its introduction in d18d37ce no longer applies
since Django's code repository was switched from Subversion to git.
Furthermore it never had any effect because shutil.rmtree ignores its
onerror argument when ignore_errors is True.
The reason for its use in template management commands is unclear.
|
| |
|
|
|
|
| |
In addition to simplifying the code, this reduces the number of writes.
|
|
|
|
| |
This makes the staticfiles tests 2.5 times faster.
|
|
|
|
| |
It should have been removed when the ADMIN_MEDIA_PREFIX setting was deprecated.
|
|
|
|
| |
Django source contains non-ASCII characters.
|
| |
|
|
|
|
|
|
|
| |
settings changes during tests
Cleared caching in staticfiles_storage and get_finder when
relevant settings are changed.
|
| |
|
|
|
|
|
|
|
| |
test failures on Windows.
This partially reverts commit 949ee521fab106b44218c30577eb55f0097d39cd
refs #21230.
|
|
|
|
| |
side effects.
|
| |
|
|
|
|
| |
There's always a better word.
|
|
|
|
|
|
|
| |
StaticLiveServerTestCase
Refs #20739. Thanks Raphaël Hertzog for the report and the initial
patch.
|
|
|
|
| |
68686430638215b5405b20bd767c0be392c9221d.
|
|
|
|
| |
files missing them.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
cleanup deleted files.
When using ManifestStaticFilesStorage, deleted static files would be
correctly cleaned up by "collectstatic --clear", but the manifest file
would still contain the stale entries.
Thanks to tedtieken for the report
|
|
|
|
| |
staticfile tests
|
| |
|
| |
|
| |
|
|
|
|
| |
Thanks Carl Meyer for the suggestion and Alex Gaynor and Carl for reviews.
|
|
|
|
|
| |
Previously, `ManifestFilesMixin.read_manifest` failed in Python 3
because `json.loads` accepts `str` not `bytes`.
|
|
|
|
|
|
|
|
|
|
|
|
| |
collectstatic command.
Before 4befb30 the detection was broken because we used isinstance
against a LazyObject rather than against a Storage class. That commit
fixed it by looking directly at the object wrapped by LazyObject.
This could however be a problem to anyone who subclasses the
collectstatic management Command and directly supplies a Storage class.
Refs #21581.
|
|
|
|
| |
Hopefully fixes a test failure on Jenkins.
|
|
|
|
|
|
| |
collectstatic.
Thanks to John Giannelos for the initial patch.
|
|
|
|
|
|
|
|
|
| |
directories it searched the relative paths.
Added searched_locations in finders module. Added verbosity flag level 2 on 'findstatic'
command that will output the directories on which it searched the relative paths.
Reported by ccurvey. Initial patch by Jonas Svensson and Vajrasky Kok.
|
|
|
|
|
|
| |
using symlink option in Windows NT 6.
Original patch by Vajrasky Kok. Reviewed by Florian Apolloner, Aymeric Augustin.
|
|
|
|
|
|
| |
in favor of import_string().
Thanks Aymeric Augustin for the suggestion and review.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
now AppConfig's job.
AppStaticStorage only provided one thing over FileSystemStorage, which was
taking an app name (import path) and translating it into a filesystem
path. This is now something that should be done via app_config.path instead,
leaving AppStaticStorage with no reason for existence. It should be safe to
remove, as it was undocumented internal API.
There was some kind of feature in the AppDirectoriesFinder code related to a
"prefix" attribute on the storage class used by AppDirectoriesFinder. Since
this feature was undocumented, untested, and of unclear purpose, I removed it
as well.
|
|
|
|
|
| |
It uses a static manifest file that is created when running
collectstatic in the JSON format.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When STATIC_ROOT wasn't set, collectstatic --clear would delete
every files within the current directory and its descendants.
This patch makes the following changes:
Prevent collectstatic from running if STATIC_ROOT isn't set.
Fixed an issue that prevented collectstatic from displaying the
destination directory.
Changed the warning header to notify when the command is run
in dry-run mode.
|
| |
|
|
|
|
| |
Except the app cache code and a few specific tests, of course.
|
|
|
|
| |
Used the app cache's get_app_configs() method instead.
|
|
|
|
|
|
|
| |
Added comments in the three empty models.py files that are still needed.
Adjusted the test runner to add applications corresponding to test
labels to INSTALLED_APPS even when they don't have a models module.
|
| |
|