summaryrefslogtreecommitdiff
path: root/tests/staticfiles_tests/storage.py
AgeCommit message (Collapse)Author
2025-02-18Refs #36005 -- Used datetime.UTC alias instead of datetime.timezone.utc.Mariusz Felisiak
datetime.UTC was added in Python 3.11.
2022-03-24Refs #32365 -- Removed internal uses of utils.timezone.utc alias.Carlton Gibson
Remaining test case ensures that uses of the alias are mapped canonically by the migration writer.
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2021-06-07Fixed #32716 -- Fixed ManifestStaticFilesStorage crash when ↵aryabartar
max_post_process_passes is 0.
2021-06-07Fixed #32821 -- Updated os.scandir() uses to use a context manager.Chris Jerdonek
2021-05-31Refs #32319 -- Changed HashedFilesMixin to use named groups in patterns.Gildardo Adrian Maravilla Jacome
2020-04-28Fixed #31517 -- Fixed HashedFilesMixin.hashed_name() if hash of the file is ↵Richard Campen
None.
2018-10-27Fixed #28606 -- Deprecated CachedStaticFilesStorage.Tim Graham
2018-08-20Fixed #29689 -- Improved performance of FileSystemStorage.listdir() and ↵Federico Bond
FilePathField with os.scandir().
2017-09-07Reverted "Fixed #27818 -- Replaced try/except/pass with contextlib.suppress()."Tim Graham
This reverts commit 550cb3a365dee4edfdd1563224d5304de2a57fda because try/except performs better.
2017-06-28Fixed #27818 -- Replaced try/except/pass with contextlib.suppress().Mads Jensen
2017-01-25Refs #23919 -- Replaced errno checking with PEP 3151 exceptions.Tim Graham
2017-01-04Fixed #27658 -- Prevented collectstatic from overwriting newer files in ↵Tim Graham
remote storages. Thanks revimi for the initial patch.
2017-01-03Refs #15035 -- Corrected a bug and improved comments for a staticfiles test.Tim Graham
2016-12-19Refs #25484 -- Removed incorrect unquoting in {% static %}.Tim Graham
Regression in 374e6230ca9f9bb84cc9dd760dfb6395fbb5ff0f. Thanks Florian Apolloner for the report and analysis.
2016-05-31Fixed #26691 -- Removed checking for a file's existence before deleting.Jon Dufresne
File operations always raise a ENOENT error when a file doesn't exist. Checking the file exists before the operation adds a race condition condition where the file could be removed between operations. As the operation already raises an error on a missing file, avoid this race and avoid checking the file exists twice. Instead only check a file exists by catching the ENOENT error.
2016-03-30Fixed #19670 -- Applied CachedFilesMixin patterns to specific extensionsClaude Paroz
Thanks Simon Meers for the initial patch, and Tim Graham for the review.
2016-03-17Fixed #26297 -- Fixed `collectstatic --clear` crash if storage doesn't ↵Berker Peksag
implement path().
2016-02-23Fixed #23832 -- Added timezone aware Storage API.James Aylett
New Storage.get_{accessed,created,modified}_time() methods convert the naive time from now-deprecated {accessed,created_modified}_time() methods into aware objects in UTC if USE_TZ=True.
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2013-11-02Fixing E302 ErrorsJason Myers
Signed-off-by: Jason Myers <jason@jasonamyers.com>
2013-02-26Merged regressiontests and modeltests into the test root.Florian Apolloner