django/tests/regressiontests/templates
Jannis Leidel 33d8fcde8a Fixed #14693, #14709 -- Backwards incompatible change to rectify the confusion around the STATICFILES_URL and STATICFILES_ROOT settings.
* Two new global settings that will be used by -- **but are not limited to** -- the staticfiles app: STATIC_ROOT and STATIC_URL.

  * Moving the 'django.contrib.staticfiles.templatetags.staticfiles' template tag to the core ('django.templatetags.static') and renaming it to 'get_static_prefix'.

  * Moving the context processor 'django.contrib.staticfiles.context_processors.staticfiles' to the core ('django.core.context_processors.static') and renaming it to 'static'.

  * Paths in media definitions will use STATIC_URL as the prefix if the value is not None, and falls back to the previously used MEDIA_URL.

Thanks again to the community for constructive criticism and Carl and Russ for sanity-inducing discussions on IRC.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@14592 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-17 15:36:26 +00:00
..
eggs Fixed #13334: Restored ability to load template tags from eggs. Again thanks Ramiro and metzen for pointers on how to find out if a module loaded from an egg has a particular submodule, and Russ for review. 2010-04-15 19:57:09 +00:00
templates Fixed #13573 -- Corrected problem with template caching when template directories are provided. Thanks to lamby for the report. 2010-05-21 08:54:15 +00:00
templatetags Add file mistakenly left out of r12986. Refs #13334. 2010-04-15 20:36:00 +00:00
__init__.py Refs #2333 - Modified runtests script to use new testing framework. Migrated existing tests to use Django testing framework. All the 'othertests' have been migrated into 'regressiontests', and converted into doctests/unittests, as appropriate. 2006-08-27 13:59:47 +00:00
context.py Converted templates doctests into unittests. We have always been at war with doctests. 2010-11-04 04:47:05 +00:00
custom.py Converted templates doctests into unittests. We have always been at war with doctests. 2010-11-04 04:47:05 +00:00
filters.py Fixed #13765 - 'safe' parameter for urlencode filter 2010-09-13 23:01:34 +00:00
loaders.py Fixed #14508 - test suite silences warnings. 2010-11-11 15:06:20 +00:00
models.py Refs #2333 - Modified runtests script to use new testing framework. Migrated existing tests to use Django testing framework. All the 'othertests' have been migrated into 'regressiontests', and converted into doctests/unittests, as appropriate. 2006-08-27 13:59:47 +00:00
nodelist.py Fixed #12991 -- Added unittest2 support. Thanks to PaulM for the draft patch, and to Luke, Karen, Justin, Alex, Łukasz Rekucki, and Chuck Harmston for their help testing and reviewing the final patch. 2010-10-11 12:55:17 +00:00
parser.py Converted templates doctests into unittests. We have always been at war with doctests. 2010-11-04 04:47:05 +00:00
smartif.py Fixed #12991 -- Added unittest2 support. Thanks to PaulM for the draft patch, and to Luke, Karen, Justin, Alex, Łukasz Rekucki, and Chuck Harmston for their help testing and reviewing the final patch. 2010-10-11 12:55:17 +00:00
tests.py Fixed #14693, #14709 -- Backwards incompatible change to rectify the confusion around the STATICFILES_URL and STATICFILES_ROOT settings. 2010-11-17 15:36:26 +00:00
unicode.py Converted templates doctests into unittests. We have always been at war with doctests. 2010-11-04 04:47:05 +00:00
urls.py Fixed #13275 -- Modified the parsing logic of the {% url %} tag to avoid catastrophic backtracking. Thanks to SmileyChris for the patch. 2010-04-10 07:35:31 +00:00
views.py Added a couple of extra tests to ensure url tag robustness. These are an 2008-08-31 17:29:49 +00:00