Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/django/contrib/staticfiles
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #25346 -- Allowed collectstatic to delete broken ↵Yusuke Miyazaki2015-10-171-1/+6
| | | | symlinks.
* Fixed #25350 -- Added alias --no-input for --noinput to ↵Raphael Michel2015-09-081-1/+1
| | | | management commands.
* Fixed #25331 -- Removed trailing blank lines in docstrings.Maxime Lorant2015-08-313-3/+0
|
* Fixed #24890 -- Added warning to collectstatic when ↵Markus Amalthea Magnuson2015-06-141-0/+8
| | | | static files have clashing names
* Removed unnecessary arguments in .get method callsPiotr Jakimiak2015-05-132-3/+3
|
* Fixed #23986 -- Fixed collectstatic --clear failure if ↵Sztrovacsek2015-03-071-0/+3
| | | | STATIC_ROOT dir doesn't exist.
* Sorted imports with isort; refs #23860.Tim Graham2015-02-0611-33/+33
|
* Fixed #23701 -- Removed an unneeded check in collectstatic.Tim Graham2014-10-221-2/+1
| | | | Thanks prathik for the report.
* Fixed #23663 -- Initialize output streams for ↵Loic Bistuer2014-10-221-1/+1
| | | | | | | | | BaseCommand in __init__(). This helps with testability of management commands. Thanks to trac username daveoncode for the report and to Tim Graham and Claude Paroz for the reviews.
* Fixed typos in comments.Tim Graham2014-10-081-1/+1
|
* Fixed #23374 -- Renamed StaticLiveServerCase to ↵Claude Paroz2014-08-281-1/+1
| | | | | | | StaticLiveServerTestCase Refs #20739. Thanks Raphaël Hertzog for the report and the initial patch.
* Fixed #23276 -- Deprecated passing views as strings to ↵Tim Graham2014-08-122-2/+5
| | | | url().
* Fixed #22891 -- Clarified that collecstatic --clear with ↵Tim Graham2014-07-231-1/+1
| | | | delete all files in the storage location.
* Fixed pyinotify performance regression in 15f82c7011Claude Paroz2014-07-061-0/+4
| | | | Refs #9722. Thanks Tim Graham for the review.
* Fixed #22835 -- Deprecated NoArgsCommand.Maxime Turcotte2014-06-191-5/+7
|
* Converted remaining management commands to argparseClaude Paroz2014-06-143-43/+41
|
* Fixed #22557 -- ManifestStaticFilesStorage did not ↵Denis Cornehl2014-05-201-0/+4
| | | | | | | | | | 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
* Removed locale dirs for single-message appsClaude Paroz2014-05-191-22/+0
| | | | | | Considering that these apps only translate their app name, it's not worth having a whole bunch of po files just for that. The translatable app name for those apps will be integrated in Django core catalog.
* Appeased flake8 2.1.0.Aymeric Augustin2014-04-211-3/+4
|
* Corrected many style guide violations that the newest ↵Alex Gaynor2014-03-301-1/+1
| | | | version of flake8 catches
* Fixed #22315 -- str/bytes mismatch in staticfilesDavid Evans2014-03-251-2/+3
| | | | | Previously, `ManifestFilesMixin.read_manifest` failed in Python 3 because `json.loads` accepts `str` not `bytes`.
* Simplified implementation of collectstatic command.Baptiste Mispelon2014-03-131-6/+1
| | | | | | | Since d2e242d16c6dde6f4736086fb38057424bed3edb made isinstance() calls work correctly on LazyObject, we can simplify the implementation of is_local_storage added in 7e27885c6e7588471fd94a4def16b7081577bdfc.
* Fixed #22070 -- Changed verbose_name for apps in ↵James Jenkins2014-03-071-1/+1
| | | | | | django.contrib to use title case Thanks bendavis78 for the report.
* Reworked the detection of local storages for the ↵Loic Bistuer2014-02-121-2/+9
| | | | | | | | | | | | 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.
* Fixed #20780 -- Get rid of stale symlinks when using ↵Jannis Leidel2014-02-091-0/+2
| | | | | | collectstatic. Thanks to John Giannelos for the initial patch.
* Fixed #19879 -- Have 'findstatic' says on which ↵Vajrasky Kok2014-02-092-3/+25
| | | | | | | | | 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.
* Fixed #21482 -- Uplifted restriction of collectstatic ↵Jannis Leidel2014-02-091-8/+14
| | | | | | using symlink option in Windows NT 6. Original patch by Vajrasky Kok. Reviewed by Florian Apolloner, Aymeric Augustin.
* Fixed #21674 -- Deprecated the import_by_path() function ↵Berker Peksag2014-02-081-2/+2
| | | | | | in favor of import_string(). Thanks Aymeric Augustin for the suggestion and review.
* Used the proxied call to staticfiles_storage.urlThomas Grainger2014-02-021-5/+5
|
* Merge pull request #2211 from carljm/t21867Jannis Leidel2014-01-252-37/+13
|\ | | | | Fixed #21867 -- Removed AppStaticStorage; app paths are now AppConfig's job.
| * Fixed #21867 -- Removed AppStaticStorage; app paths are ↵Carl Meyer2014-01-242-37/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Fixed #21829 -- Added default AppConfigs.Aymeric Augustin2014-01-251-0/+1
|/ | | | | Thanks Russell for the report, Marc for the initial patch, Carl for the final review, and everyone who contributed to the design discussion.
* Added ManifestStaticFilesStorage to staticfiles contrib app.Jannis Leidel2014-01-201-24/+120
| | | | | It uses a static manifest file that is created when running collectstatic in the JSON format.
* Fixed #16905 -- Added extensible checks (nee validation) ↵Russell Keith-Magee2014-01-201-1/+1
| | | | | | | | | | | framework This is the result of Christopher Medrela's 2013 Summer of Code project. Thanks also to Preston Holmes, Tim Graham, Anssi Kääriäinen, Florian Apolloner, and Alex Gaynor for review notes along the way. Also: Fixes #8579, fixes #3055, fixes #19844.
* Fixed #21750 -- Fixed regression introduced by 4befb30.Loic Bistuer2014-01-112-4/+12
| | | | | | | | | | | | | | | Validating STATIC_ROOT in StaticFilesStorage.__init__ turned out to be problematic - especially with tests - because the storage refuses to work even if there are no actual interactions with the file system, which is backward incompatible. Originally the validation happened in the StaticFilesStorage.path method, but that didn't work as expected because the call to FileSystemStorage.__init__ replaced the empty value by a valid path. The new approach is to move back the check to the StaticFilesStorage.path method, but ensure that the location attribute remains None after the call to super. Refs #21581.
* Added catalogs for apps that didn't have any translations.Aymeric Augustin2014-01-051-0/+22
|
* Fixed #21675 -- Added app configs for contrib apps.Aymeric Augustin2014-01-051-0/+8
|
* Fixed #21581 -- Fixed a number of issues with collectstatic.Loic Bistuer2013-12-312-24/+27
| | | | | | | | | | | | | | | 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.
* Renamed AppCache to Apps.Aymeric Augustin2013-12-241-7/+7
| | | | | | Also renamed app_cache to apps and "app cache" to "app registry". Deprecated AppCache.app_cache_ready() in favor of Apps.ready().
* Moved apps back in the toplevel django namespace.Aymeric Augustin2013-12-221-1/+1
| | | | Reverted 4a56a93cc458e9ab4dcab95d9f5067d4975dd1a2.
* Stopped iterating on INSTALLED_APPS.Aymeric Augustin2013-12-221-2/+4
| | | | Used the app cache's get_app_configs() method instead.
* Removed superfluous models.py files.Aymeric Augustin2013-12-171-0/+0
| | | | | | | 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.
* Fixed #21543 -- Removed base_dir attribute in ↵Krzysztof Jurewicz2013-12-021-8/+1
| | | | | | StaticFilesHandler. This code seems to be an artifact of AdminMediaHandler removed in [5c53e30607].
* Fixed #21380 -- Added a way to set different permission ↵Vajrasky Kok2013-11-291-6/+0
| | | | | | | | | for static directories. Previously when collecting static files, the directories would receive permissions from the global umask. Now the default permission comes from FILE_UPLOAD_DIRECTORY_PERMISSIONS and there's an option to specify the permissions by subclassing any of the static files storage classes and setting the directory_permissions_mode parameter.
* Fixed #21012 -- New API to access cache backends.Curtis Maloney2013-11-231-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Thanks Curtis Malony and Florian Apolloner. Squashed commit of the following: commit 3380495e93f5e81b80a251b03ddb0a80b17685f5 Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Sat Nov 23 14:18:07 2013 +0100 Looked up the template_fragments cache at runtime. commit 905a74f52b24a198f802520ff06290a94dedc687 Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Sat Nov 23 14:19:48 2013 +0100 Removed all uses of create_cache. Refactored the cache tests significantly. Made it safe to override the CACHES setting. commit 35e289fe9285feffed3c60657af9279a6a2cfccc Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Sat Nov 23 12:23:57 2013 +0100 Removed create_cache function. commit 8e274f747a1f1c0c0e6c37873e29067f7fa022e8 Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Sat Nov 23 12:04:52 2013 +0100 Updated docs to describe a simplified cache backend API. commit ee7eb0f73e6d4699edcf5d357dce715224525cf6 Author: Curtis Maloney <curtis@tinbrain.net> Date: Sat Oct 19 09:49:24 2013 +1100 Fixed #21012 -- Thread-local caches, like databases.
* Fixed #21351 -- Replaced memoize with Python's lru_cache.Bouke Haarsma2013-11-111-6/+4
| | | | | | | | | | Replaced the custom, untested memoize with a similar decorator from Python's 3.2 stdlib. Although some minor performance degradation (see ticket), it is expected that in the long run lru_cache will outperform memoize once it is implemented in C. Thanks to EvilDMP for the report and Baptiste Mispelon for the idea of replacing memoize with lru_cache.
* More attacking E302 violatorsAlex Gaynor2013-11-024-0/+6
|
* Continue to attack E302 violationsAlex Gaynor2013-11-022-0/+2
|
* Fixed #20841 -- Added messages to NotImplementedErrorsGregor MacGregor2013-09-101-2/+2
| | | | Thanks joseph at vertstudios.com for the suggestion.
* Moved two WSGI-specific functions to the WSGI handler.Aymeric Augustin2013-09-071-2/+1
| | | | They were defined in base when the mod_python handler used them. See bfcecbff.