1
0
mirror of https://github.com/django/django.git synced 2025-03-13 02:40:47 +00:00

21 Commits

Author SHA1 Message Date
Carlton Gibson
bb61f0186d Refs -- Removed internal uses of utils.timezone.utc alias.
Remaining test case ensures that uses of the alias are mapped
canonically by the migration writer.
2022-03-24 06:29:50 +01:00
django-bot
9c19aff7c7 Refs -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
aryabartar
651e527f9b Fixed -- Fixed ManifestStaticFilesStorage crash when max_post_process_passes is 0. 2021-06-07 07:56:20 +02:00
Chris Jerdonek
7272e1963f Fixed -- Updated os.scandir() uses to use a context manager. 2021-06-07 06:52:42 +02:00
Gildardo Adrian Maravilla Jacome
781b44240a Refs -- Changed HashedFilesMixin to use named groups in patterns. 2021-05-31 10:40:21 +02:00
Richard Campen
67b334fbaf Fixed -- Fixed HashedFilesMixin.hashed_name() if hash of the file is None. 2020-04-28 08:25:07 +02:00
Tim Graham
f892781b95 Fixed -- Deprecated CachedStaticFilesStorage. 2018-10-27 11:58:29 -04:00
Federico Bond
a0ca4b5694 Fixed -- Improved performance of FileSystemStorage.listdir() and FilePathField with os.scandir(). 2018-08-20 17:58:00 -04:00
Tim Graham
6e4c6281db Reverted "Fixed -- Replaced try/except/pass with contextlib.suppress()."
This reverts commit 550cb3a365dee4edfdd1563224d5304de2a57fda
because try/except performs better.
2017-09-07 08:16:21 -04:00
Mads Jensen
550cb3a365 Fixed -- Replaced try/except/pass with contextlib.suppress(). 2017-06-28 14:07:55 -04:00
Tim Graham
632c4ffd9c Refs -- Replaced errno checking with PEP 3151 exceptions. 2017-01-25 10:13:08 -05:00
Tim Graham
c85831e4b7 Fixed -- Prevented collectstatic from overwriting newer files in remote storages.
Thanks revimi for the initial patch.
2017-01-04 12:50:31 -05:00
Tim Graham
bff4abacad Refs -- Corrected a bug and improved comments for a staticfiles test. 2017-01-03 19:22:19 -05:00
Tim Graham
e233f357bd Refs -- Removed incorrect unquoting in {% static %}.
Regression in 374e6230ca9f9bb84cc9dd760dfb6395fbb5ff0f.

Thanks Florian Apolloner for the report and analysis.
2016-12-19 16:18:06 -05:00
Jon Dufresne
359be1c870 Fixed -- Removed checking for a file's existence before deleting.
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-05-31 12:03:27 -04:00
Claude Paroz
edcecaf0de Fixed -- Applied CachedFilesMixin patterns to specific extensions
Thanks Simon Meers for the initial patch, and Tim Graham for the review.
2016-03-30 14:34:41 +02:00
Berker Peksag
28bcff82c5 Fixed -- Fixed collectstatic --clear crash if storage doesn't implement path(). 2016-03-17 09:49:57 -04:00
James Aylett
1ff6e37de4 Fixed -- Added timezone aware Storage API.
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.
2016-02-23 18:51:43 -05:00
Tim Graham
0ed7d15563 Sorted imports with isort; refs . 2015-02-06 08:16:28 -05:00
Jason Myers
c3791463a5 Fixing E302 Errors
Signed-off-by: Jason Myers <jason@jasonamyers.com>
2013-11-02 23:48:47 -05:00
Florian Apolloner
89f40e3624 Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00