Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/staticfiles_tests
Commit message (Collapse)AuthorAgeFilesLines
...
* Fixed E124 pep8 warnings.Loic Bistuer2013-12-101-2/+4
|
* Fixed #21380 -- Added a way to set different permission ↵Vajrasky Kok2013-11-291-2/+31
| | | | | | | | | 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 #21351 -- Replaced memoize with Python's lru_cache.Bouke Haarsma2013-11-111-2/+11
| | | | | | | | | | 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.
* Fixing E302 ErrorsJason Myers2013-11-031-0/+1
| | | | Signed-off-by: Jason Myers <jason@jasonamyers.com>
* Fixed #21219 -- Added a way to set different permission ↵Vajrasky Kok2013-10-241-0/+44
| | | | | | | | | | | for static files. Previously, when collecting static files, the files would receive permission from FILE_UPLOAD_PERMISSIONS. Now, there's an option to give different permission from uploaded files permission by subclassing any of the static files storage classes and setting the file_permissions_mode parameter. Thanks dblack at atlassian.com for the suggestion.
* Removed unused local variables in tests.Tim Graham2013-10-191-1/+1
|
* Took advantage of django.utils.six.moves.urllib.*.Aymeric Augustin2013-09-051-4/+1
|
* Fixed a couple unclosed file warnings in testsTim Graham2013-09-031-1/+2
|
* Made django.test.testcases not depend on staticfiles ↵Ramiro Morales2013-08-311-0/+101
| | | | | | | | | contrib app. Do this by introducing a django.contrib.staticfiles.testing.StaticLiveServerCase unittest TestCase subclass. Fixes #20739.
* Fixed #20819 -- Return 404 instead of 500 error when ↵Tai Lee2013-07-311-2/+1
| | | | ``staticfiles`` view is used in production.
* Fixed #18404 -- Added test for AppStaticStorage with non ↵Florian Hahn2013-07-281-0/+30
| | | | | | ascii path (bug was already fixed in #19357)
* Fixed #18986 -- Improved error message for missing filesAymeric Augustin2013-04-282-1/+17
| | | | in CachedStaticFilesStorage. Thanks zyegfryed for his work on the patch.
* Renamed some tests and removed references to ↵Florian Apolloner2013-02-261-6/+6
| | | | modeltests/regressiontests.
* Merged regressiontests and modeltests into the test root.Florian Apolloner2013-02-2642-0/+853