summaryrefslogtreecommitdiff
path: root/django
AgeCommit message (Collapse)Author
2014-01-01Several small whitespace fixes for styleguide/flake8 violationsAlex Gaynor
2014-01-01Fixed #21018 -- Reversed precedence order for management commands.Aymeric Augustin
2014-01-01Wiped get_commands() cache when INSTALLED_APPS changes.Aymeric Augustin
Refs #21018, #21688.
2014-01-01Fixed #21206 -- Fixed test discovery without labelsPreston Timmons
Added test to verify an empty label performs discovery on the current working directory.
2014-01-01Readded field unadvertantly removed in fedfd5030Claude Paroz
2014-01-01Fixed a few issues in previous commit.Aymeric Augustin
2014-01-01Properly assigned app_label to GIS test models.Aymeric Augustin
Used abstract inheritance to cut down on code repetition.
2013-12-31Fixed #21581 -- Fixed a number of issues with collectstatic.Loic Bistuer
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.
2013-12-31Fixed #21714 -- Moved logging configuration to global setup()Claude Paroz
Thanks Aymeric Augustin for the report and the review.
2013-12-31Renamed AppConfig.setup to ready.Aymeric Augustin
Thanks Jannis and Marc for the feedback. Fixed #21717.
2013-12-31Enforced unicity of app labels.Aymeric Augustin
Fixed #21679.
2013-12-31Made it possible to change an application's label in its configuration.Aymeric Augustin
Fixed #21683.
2013-12-31Checked unicity of app config names when populating the app registry.Aymeric Augustin
This check will miss duplicates until the check for duplicate labels is added. Refs #21679.
2013-12-31Removed an obsolete unicity check.Aymeric Augustin
It doesn't account for app configs. Refs #21679.
2013-12-31Fixed #21716 -- Only passed arguments supported by ogrinspectClaude Paroz
Thanks Marco Badan for the report.
2013-12-31Small style cleanup.Aymeric Augustin
2013-12-31Fleshed out release notes for app loading.Aymeric Augustin
Fixed #21715.
2013-12-31Turned django.db.models.app_cache_ready back into a method.Aymeric Augustin
Thanks Anssi for noticing this mistake in a refactoring.
2013-12-31Oops.Aymeric Augustin
2013-12-31Called django.setup() explicitly in management commands.Aymeric Augustin
This avoids duplicating code.
2013-12-31only attempt to create the postgis extension when it does not already existThomas Schreiber
2013-12-30Removed the only_with_models_module argument of get_model[s].Aymeric Augustin
Now that the refactorings are complete, it isn't particularly useful any more, nor very well named. Let's keep the API as simple as possible. Fixed #21689.
2013-12-30Merge pull request #2126 from apollo13/email_bytesFlorian Apolloner
Many thanks to @bitdancer and @aaugustin for answering my stupid questions about (mail)encodings and pointing me in the right direction.
2013-12-30Decode mails using the message encoding.Florian Apolloner
2013-12-30Changed console and filebackend to use msg.as_bytes to output the data as it ↵Florian Apolloner
would get send via smtp.
2013-12-30Merged Apps.populate_apps() and populate_models().Aymeric Augustin
After the recent series of refactorings, there's no reason to keep two distinct methods. Refs #21681.
2013-12-30Removed postponing in Apps.populate_models.Aymeric Augustin
To the best of my understanding, since populate_models() is now called as soon as Django starts, it cannot be called while a models module is being imported, and that removes the need for postponing. (If hell breaks loose we'll revert this commit.) Refs #21681.
2013-12-30Stopped populating the app registry as a side effect.Aymeric Augustin
Since it triggers imports, it shouldn't be done lightly. This commit adds a public API for doing it explicitly, django.setup(), and does it automatically when using manage.py and wsgi.py.
2013-12-30Populated Apps instances immediately by default.Aymeric Augustin
2013-12-30Added AppConfig.setup() to run setup code.Aymeric Augustin
2013-12-30Populated the app registry earlier at startup.Aymeric Augustin
Refs #1796, #21676.
2013-12-30Avoided leaking state on exceptions in populate_models().Aymeric Augustin
2013-12-29Stopped calling get_models() for a side effect.Aymeric Augustin
2013-12-29Deprecated the app argument of apps.get_models.Aymeric Augustin
Use app_config.get_models() instead.
2013-12-29Changed get_validation_errors to use an app config.Aymeric Augustin
2013-12-29Changed get_migratable_models to use an app config.Aymeric Augustin
2013-12-29Changed sql_* to use an app config instead of a models module.Aymeric Augustin
2013-12-29Fixed stupid error in 21f22f95.Aymeric Augustin
2013-12-29Removed unused import.Aymeric Augustin
2013-12-29Removed obsolete docstring.Aymeric Augustin
2013-12-29Added Apps.clear_cache().Aymeric Augustin
This avoid leaking implementation details to tests that swap models.
2013-12-29Fixed a typo.Aymeric Augustin
Thanks Simon.
2013-12-29Added AppConfig.get_models().Aymeric Augustin
2013-12-29Cleared global templatetags module cache.Florian Apolloner
TOOOOO MUCH GLOBAL STATE (you didn't see that).
2013-12-29Replaced Options.object_name.lower() by Options.model_name.Aymeric Augustin
Thanks Simon for the suggestion. Also removed inappropriate lowercasing of app labels in migrations. Unlike model names, they are case sensitive.
2013-12-29Cleared get_models cache when swapping User model.Aymeric Augustin
Thanks Florian for isolating the shortest way to reproduce this issue: ./runtests.py \ django.contrib.auth.tests.test_context_processors.AuthContextProcessorTests.test_perms_attrs \ django.contrib.auth.tests.test_auth_backends.ChangedBackendSettingsTest.test_changed_backend_settings \ django.contrib.auth.tests.test_auth_backends.CustomUserModelBackendAuthenticateTest.test_authenticate \ django.contrib.auth.tests.test_basic.BasicTestCase.test_createsuperuser_management_command
2013-12-29Refactored the migration signals to use app configs.Aymeric Augustin
De-aliased pre/post_syncdb to pre/post_migrate to increase backwards-compatibility.
2013-12-28Added generation of SQLite FK DDL in initial migrations.Ramiro Morales
SQLite accepts the relevant standard SQL (although by default it doesn't enforce the constraint), and the 'traditional' creation backend helper generate it, so this allows us to: - Maintain the status quo - Improve readability of the SQL code generated for that backend. Also, we will need this for when we fix Refs #14204.
2013-12-28Fixed #21242 -- Allowed more IANA schemes in URLValidatorClaude Paroz
Thanks Sascha Peilicke for the report and initial patch, and Tim Graham for the review.
2013-12-28Removed the only_installed argument of Apps.get_models.Aymeric Augustin
Refs #15903, #15866, #15850.