Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/django/test/signals.py
Commit message (Collapse)AuthorAgeFilesLines
* Removed deprecated TEMPLATE_* settings per deprecation ↵Tim Graham2015-09-241-5/+0
| | | | timeline.
* Refs #24022 -- Removed the ssi tag per deprecation timeline.Tim Graham2015-09-241-1/+0
|
* Fixed #16860 -- Added password validation to ↵Erik Romijn2015-06-071-0/+7
| | | | django.contrib.auth.
* Fixed #17085, #24783 -- Refactored template library ↵Preston Timmons2015-05-211-3/+0
| | | | | | | | registration. * Converted the ``libraries`` and ``builtins`` globals of ``django.template.base`` into properties of the Engine class. * Added a public API for explicit registration of libraries and builtins.
* Fixed #23820 -- Supported per-database time zone.Aymeric Augustin2015-05-171-14/+14
| | | | | | | | | The primary use case is to interact with a third-party database (not primarily managed by Django) that doesn't support time zones and where datetimes are stored in local time when USE_TZ is True. Configuring a PostgreSQL database with the TIME_ZONE option while USE_TZ is False used to result in silent data corruption. Now this is an error.
* Deprecated TEMPLATE_DEBUG setting.Aymeric Augustin2015-02-151-0/+1
|
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-2/+2
|
* Fixed #24197 -- Added clearing of staticfiles caches on ↵mlavin2015-02-041-0/+21
| | | | | | | settings changes during tests Cleared caching in staticfiles_storage and get_finder when relevant settings are changed.
* Added initial support for loading template engines.Aymeric Augustin2014-12-281-1/+10
|
* Fixed #20349 -- Moved setting_changed signal to ↵Collin Anderson2014-12-241-2/+1
| | | | | | django.core.signals. This removes the need to load django.test when not testing.
* Fixed #23933 -- Made override_settings(DATABASE_ROUTERS) ↵wrwrwr2014-12-011-1/+8
| | | | affect the master router.
* Encapsulated TEMPLATE_DEBUG in Engine.Aymeric Augustin2014-11-231-0/+1
|
* Encapsulated TEMPLATE_CONTEXT_PROCESSORS in Engine.Aymeric Augustin2014-11-231-7/+0
| | | | | | Since RequestContext doesn't know its Engine until it's passed to Template.render() -- and cannot without breaking a widely used public API -- an elaborate hack is required to apply context processors.
* Removed dependency of template loaders on Django settings.Aymeric Augustin2014-11-231-0/+1
|
* Moved template loaders management in Engine.Aymeric Augustin2014-11-231-7/+0
| | | | | | | | | | | Passed the engine instance to loaders. This is a prerequisite for looking up configuration on the engine instance instead of global settings. This is backwards incompatible for custom template loaders that override __init__. However the documentation doesn't talk about __init__ and the way to pass arguments to custom template loaders isn't specified. I'm considering it a private API.
* Introduced a template engine class.Aymeric Augustin2014-11-231-0/+13
| | | | Moved Django templates loading infrastructure there.
* Simplified caching of template context processors.Aymeric Augustin2014-11-191-2/+2
|
* Simplified caching of templatetags modules.Aymeric Augustin2014-11-191-2/+2
|
* Simplified caching of get_default_timezone().Aymeric Augustin2014-11-191-1/+1
|
* Refactored getting the list of template loaders.Aymeric Augustin2014-11-161-2/+2
| | | | | This provides the opportunity to move utility functions specific to the Django Template Language outside of django.template.loader.
* Refactored listing template subdirectories in apps.Aymeric Augustin2014-11-161-3/+3
| | | | | | This change has the nice side effect of removing code that ran at import time and depended on the app registry at module level -- a notorious cause of AppRegistryNotReady exceptions.
* Fixed #23600 -- Made default_storage aware of more ↵Duncan Parkes2014-10-091-1/+9
| | | | | | | settings changes. Added MEDIA_URL, FILE_UPLOAD_PERMISSIONS, and FILE_UPLOAD_DIRECTORY_PERMISSIONS to the list of settings.
* Replaced set([foo, ...]) by {foo, ...} literals. Refs PR ↵Thomas Chaumeny2014-09-281-1/+1
| | | | | | 3282. Thanks Collin Anderson for the review.
* Fixed #22572 -- override_settings(ROOT_URLCONF) didn't ↵Loic Bistuer2014-05-051-1/+2
| | | | | | clear urlresolvers._urlconfs. Thanks Anubhav Joshi and Tim Graham for the reviews.
* Fixed many typos in comments and docstrings.Rodolfo Carvalho2014-03-031-1/+1
| | | | Thanks Piotr Kasprzyk for help with the patch.
* Fixed #21518 -- Made override_settings(ROOT_URLCONF) ↵Chris Wilson2014-02-071-0/+7
| | | | | | clear the resolver cache. Thanks Aymeric Augustin and Simon Charette for reviews.
* Removed TransRealMixin.Aymeric Augustin2014-01-271-3/+9
| | | | Fixed #21688. Refs https://github.com/django/django/pull/1147.
* Minor cleanup.Aymeric Augustin2014-01-271-6/+6
|
* Wiped get_commands() cache when INSTALLED_APPS changes.Aymeric Augustin2014-01-011-0/+3
| | | | Refs #21018, #21688.
* Cleared global templatetags module cache.Florian Apolloner2013-12-291-0/+3
| | | | TOOOOO MUCH GLOBAL STATE (you didn't see that).
* Properly app_template_dirs when INSTALLED_APPS change.Florian Apolloner2013-12-271-0/+3
|
* Refactored INSTALLED_APPS overrides.Aymeric Augustin2013-12-231-1/+9
| | | | | | | | | | * Introduced [un]set_installed_apps to handle changes to the INSTALLED_APPS setting. * Refactored [un]set_available_apps to share its implementation with [un]set_installed_apps. * Implemented a receiver to clear some app-related caches. * Removed test_missing_app as it is basically impossible to reproduce this situation with public methods of the new app cache.
* Complained on override_settings(INSTALLED_APPS=...).Aymeric Augustin2013-12-221-1/+1
| | | | | | | | Currently such overrides aren't reflected in the app cache. It would be possible to handle them. But that doesn't look like a very good API. It makes it complicated to express "add this app" and "remove this app", which are the most common operations on INSTALLED_APPS.
* Set stacklevel for the override_settings warning.Aymeric Augustin2013-12-201-1/+4
| | | | Refs #19031.
* Fixed #21012 -- New API to access cache backends.Curtis Maloney2013-11-231-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 #19031 -- Added a warning when using ↵Joeri Bekker2013-07-121-1/+12
| | | | override_settings with 'DATABASES'
* Fixed #17744 -- Reset default file storage with ↵Claude Paroz2012-10-301-0/+7
| | | | setting_changed signal
* Fixed #17948 -- Isolated auth tests from custom template ↵Claude Paroz2012-09-151-0/+7
| | | | | | loaders Thanks andrey@kostenko.name for the report.
* Fixed #18196 -- Improved loaddata error messages.Claude Paroz2012-08-211-1/+8
|
* Fixed #18395 -- Reset language-related global variables ↵Claude Paroz2012-07-211-0/+12
| | | | with setting_changed
* Simplified timezones tests with settings_changed.Aymeric Augustin2012-04-291-2/+22
| | | | | All relevant state is now properly reset whenever TIME_ZONE or USE_TZ are changed in tests.
* Fixed #17848 -- Added setting_changed signal for cases ↵Claude Paroz2012-04-091-2/+7
| | | | | | when TEMPLATE_CONTEXT_PROCESSORS is overriden in tests. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17885 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #17882 (again) -- Updated the database ↵Aymeric Augustin2012-03-141-7/+16
| | | | | | connections' time zone when time-zone-related settings are changed in tests. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17709 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #17882 -- Reopened the database connection when a ↵Aymeric Augustin2012-03-131-0/+9
| | | | | | test changes time zone settings. Thanks brodie for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17699 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #15561 -- Extended test setting override code ↵Jannis Leidel2011-05-181-0/+2
| | | | | | added in r16165 with a decorator and a signal for setting changes. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16237 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Major refactoring of django.dispatch with an eye towards ↵Jacob Kaplan-Moss2008-08-061-1/+3
| | | | | | | | | | | | | | | speed. The net result is that signals are up to 90% faster. Though some attempts and backwards-compatibility were made, speed trumped compatibility. Thus, as usual, check BackwardsIncompatibleChanges for the complete list of backwards-incompatible changes. Thanks to Jeremy Dunck and Keith Busell for the bulk of the work; some ideas from Brian Herring's previous work (refs #4561) were incorporated. Documentation is, sigh, still forthcoming. Fixes #6814 and #3951 (with the new dispatch_uid argument to connect). git-svn-id: http://code.djangoproject.com/svn/django/trunk@8223 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Refs #2333 - Re-added the template rendering signal for ↵Russell Keith-Magee2006-09-021-0/+1
testing purposes; however, the signal is not available during normal operation. It is only added as part of an instrumentation step that occurs during test framework setup. Previous attempt (r3659) was reverted (r3666) due to performance concerns. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3707 bcc190cf-cafb-0310-a4f2-bffc1f526a37