summaryrefslogtreecommitdiff
path: root/django/test/signals.py
AgeCommit message (Collapse)Author
2026-03-19Fixed #36958 -- Reloaded logging config when logging settings are changed in ↵SnippyCodes
tests. Thanks JaeHyuck Sa and Jake Howard for the reviews.
2023-09-29Refs #15667 -- Added resetting default renderer when FORM_RENDERER is changed.Mariusz Felisiak
2023-09-18Refs #26029 -- Removed DEFAULT_FILE_STORAGE and STATICFILES_STORAGE settings.Mariusz Felisiak
This also removes django.core.files.storage.get_storage_class(). Per deprecation timeline.
2023-03-07Fixed #32172 -- Adapted signals to allow async handlers.Jon Janzen
co-authored-by: kozzztik <kozzztik@mail.ru> co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
2023-01-12Refs #26029 -- Deprecated DEFAULT_FILE_STORAGE and STATICFILES_STORAGE settings.Jarosław Wygoda
2023-01-12Fixed #26029 -- Allowed configuring custom file storage backends.Jarosław Wygoda
2022-03-17Prevented initialization of unused database connections.Florian Apolloner
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2021-12-17Changed signatures of setting_changed signal receivers.Adam Johnson
2020-12-08Fixed #32233 -- Cleaned-up duplicate connection functionality.Florian Apolloner
2020-07-30Bumped minimum isort version to 5.1.0.David Smith
Fixed inner imports per isort 5. isort 5.0.0 to 5.1.0 was unstable.
2020-03-05Fixed #31327 -- Deprecated providing_args argument for Signal.Jon Dufresne
2020-02-07Closed caches in clear_cache_handlers() signal handler.Jon Dufresne
This also fixes ResourceWarnings about unclosed sockets emitted in cache.tests.
2019-09-10Refs #29817 -- Removed settings.FILE_CHARSET per deprecation timeline.Mariusz Felisiak
2019-06-20Fixed #30451 -- Added ASGI handler and coroutine-safety.Andrew Godwin
This adds an ASGI handler, asgi.py file for the default project layout, a few async utilities and adds async-safety to many parts of Django.
2017-09-07Reverted "Fixed #27818 -- Replaced try/except/pass with contextlib.suppress()."Tim Graham
This reverts commit 550cb3a365dee4edfdd1563224d5304de2a57fda because try/except performs better.
2017-06-28Fixed #27818 -- Replaced try/except/pass with contextlib.suppress().Mads Jensen
2017-01-18Refs #23919 -- Removed six.PY2/PY3 usageClaude Paroz
Thanks Tim Graham for the review.
2016-12-27Fixed #15667 -- Added template-based widget rendering.Preston Timmons
Thanks Carl Meyer and Tim Graham for contributing to the patch.
2016-12-21Refs #25753 -- Reset l10n cache when format settings changeClaude Paroz
Thanks Jaap Roes for the initial patch.
2016-11-25Fixed #25966 -- Made get_user_model() work at import time.Aymeric Augustin
This makes it equivalent to: `from django.contrib.auth.models import User`. Thanks Aymeric Augustin for the initial patch and Tim Graham for the review.
2016-11-22Fixed #27513 -- Made Signal.send()/send_robust() a tiny bit faster.Adam Chainz
2016-06-06Fixed #26712 -- Avoided unnecessary SET TIMEZONE queries on PostgreSQL.Simon Charette
A change of the USE_TZ or TIME_ZONE settings doesn't necessarily require a change to the active connections' timezones.
2016-05-18Moved the AUTH_USER_MODEL setting changed receiver.Simon Charette
Test suites besides Django's may need the same behavior.
2016-02-08Fixed #26177 -- Fixed a PostgreSQL crash with TIME_ZONE=None and USE_TZ=False.Tim Graham
2016-01-07Fixed #26038 -- Changed FileSystemStorage defaults on setting change.Simon Charette
Thanks to Dave Voutila for the report and Tim for the review.
2015-12-31Fixed #26013 -- Moved django.core.urlresolvers to django.urls.Marten Kenbeek
Thanks to Tim Graham for the review.
2015-09-23Removed deprecated TEMPLATE_* settings per deprecation timeline.Tim Graham
2015-09-23Refs #24022 -- Removed the ssi tag per deprecation timeline.Tim Graham
2015-06-07Fixed #16860 -- Added password validation to django.contrib.auth.Erik Romijn
2015-05-21Fixed #17085, #24783 -- Refactored template library registration.Preston Timmons
* 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.
2015-05-17Fixed #23820 -- Supported per-database time zone.Aymeric Augustin
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.
2015-02-15Deprecated TEMPLATE_DEBUG setting.Aymeric Augustin
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2015-02-04Fixed #24197 -- Added clearing of staticfiles caches on settings changes ↵mlavin
during tests Cleared caching in staticfiles_storage and get_finder when relevant settings are changed.
2014-12-28Added initial support for loading template engines.Aymeric Augustin
2014-12-24Fixed #20349 -- Moved setting_changed signal to django.core.signals.Collin Anderson
This removes the need to load django.test when not testing.
2014-12-01Fixed #23933 -- Made override_settings(DATABASE_ROUTERS) affect the master ↵wrwrwr
router.
2014-11-23Encapsulated TEMPLATE_DEBUG in Engine.Aymeric Augustin
2014-11-23Encapsulated TEMPLATE_CONTEXT_PROCESSORS in Engine.Aymeric Augustin
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.
2014-11-23Removed dependency of template loaders on Django settings.Aymeric Augustin
2014-11-23Moved template loaders management in Engine.Aymeric Augustin
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.
2014-11-23Introduced a template engine class.Aymeric Augustin
Moved Django templates loading infrastructure there.
2014-11-19Simplified caching of template context processors.Aymeric Augustin
2014-11-19Simplified caching of templatetags modules.Aymeric Augustin
2014-11-19Simplified caching of get_default_timezone().Aymeric Augustin
2014-11-16Refactored getting the list of template loaders.Aymeric Augustin
This provides the opportunity to move utility functions specific to the Django Template Language outside of django.template.loader.
2014-11-16Refactored listing template subdirectories in apps.Aymeric Augustin
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.
2014-10-08Fixed #23600 -- Made default_storage aware of more settings changes.Duncan Parkes
Added MEDIA_URL, FILE_UPLOAD_PERMISSIONS, and FILE_UPLOAD_DIRECTORY_PERMISSIONS to the list of settings.
2014-09-29Replaced set([foo, ...]) by {foo, ...} literals. Refs PR 3282.Thomas Chaumeny
Thanks Collin Anderson for the review.