summaryrefslogtreecommitdiff
path: root/django/core
AgeCommit message (Collapse)Author
2014-02-16Fixed #19980: Signer broken for binary keys (with non-ASCII chars).MattBlack85
With this pull request, request #878 should considered closed. Thanks to nvie for the patch.
2014-02-15Corrected a pair of flake8 violationsAlex Gaynor
2014-02-15Improved fix for #18373 -- backward compatibilityGrzegorz Nosek
Commit 79558c78 cleaned up the (undocumented) interface of Resolver404 exception, which breaks compatibility with code messing with .args[0] directly. Revert the cleanup part and simply leave the fix itself.
2014-02-15Fixed some flake8 errors from recent commits.Tim Graham
2014-02-15Fixed #21912 -- Improved error message if a view returns None.Aaron France
Thanks brycenesbitt for the report.
2014-02-15Fixed #18373 - improved handling of Resolver404s from viewsGrzegorz Nosek
When django.core.urlresolvers.resolve was called from a view, failed and the exception was propagated and rendered by technical_404_response, the URL mentioned on the page was the current URL instead of the URL passed to resolve(). Fixed by using the path attribute from the Resolver404 exception instead of request.path_info. Also cleaned up the exceptions to use standard named parameters instead of stuffing a dict in args[0]
2014-02-15Fixed two typos.Rodolfo Carvalho
2014-02-15Moved relative URL handling added in refs #21177 to a better place.Tim Graham
Thanks apollo13: "reverse() shouldn't know about absolute/relative paths."
2014-02-14Fixed #21177 -- Made resolve_url support relative URLs.Antoine Catton
This fixes redirecting to relative URLs with django.shortcuts.redirect.
2014-02-12Fixed #21856: Don't crash runserver when DATABASES = {}Andrew Godwin
2014-02-12Reverting unapplied migrations check away from being a system-level check.Andrew Godwin
This reverts commit 0ac13eccebb3d879f79b31585b1e81f655067179.
2014-02-12Add --empty option to makemigrationsAndrew Godwin
2014-02-12Fixed #22025 -- Listing app followed by app.Model in dumpdata commandEli Bendersky
When invoked as follows: $ python manage.py dumpdata blogapp blogapp.Tag Django would throw a TypeError. This commit fixes the problem and provides a test.
2014-02-10Fixed #20784 -- Added inverse_match parameter to RegexValidator.Si Feng
2014-02-09Merge pull request #2245 from funkybob/parse_headerClaude Paroz
Replaced _parse_content_type with cgi.parse_header
2014-02-09Fixed #21969: Fix behaviour of initial_data with migrated appsAndrew Godwin
2014-02-09Fixed #21968: Bad detection of old-style apps to add initial migrationAndrew Godwin
2014-02-09Merge pull request #2244 from mlavin/21856-migration-checksAndrew Godwin
Fixed #21856: Allow Empty DATABASES Setting
2014-02-09Replace _parse_content_type with cgi.parse_headerCurtis
2014-02-08Fixed #19373 -- Ported Windows file locking from PyWin32 to ctypesKevin Christopher Henry
There wasn't any file locking under Windows unless PyWin32 was installed. This removes that (undocumented) dependency by using ctypes instead. Thanks to Anatoly Techtonik for writing the ctypes port upon which this is based.
2014-02-08Fixed #21674 -- Deprecated the import_by_path() function in favor of ↵Berker Peksag
import_string(). Thanks Aymeric Augustin for the suggestion and review.
2014-02-08Remove check_migrations from the runserver command and use the new checks ↵mlavin
framework to check for unapplied migrations. Don't check for migrations if the DATABASES setting is empty.
2014-02-02Ensure cursors are closed when no longer needed.Michael Manfre
This commit touchs various parts of the code base and test framework. Any found usage of opening a cursor for the sake of initializing a connection has been replaced with 'ensure_connection()'.
2014-01-28Fixed #21849 -- Included the count of silenced system checks in output.Tim Graham
2014-01-26Fixed #21866 -- Replaced "COMMIT" in managmement command SQL with backend hook.Wojciech Banaś
2014-01-26Took advantage of the new get_model API. Refs #21702.Aymeric Augustin
2014-01-25Fixed #21873 -- Removed duplicate import.Aymeric Augustin
Thanks Sephi for the report.
2014-01-25Fixed #21829 -- Added default AppConfigs.Aymeric Augustin
Thanks Russell for the report, Marc for the initial patch, Carl for the final review, and everyone who contributed to the design discussion.
2014-01-20fixed typo on docstringJosé Moreira
2014-01-20Fixed #16905 -- Added extensible checks (nee validation) frameworkRussell Keith-Magee
This is the result of Christopher Medrela's 2013 Summer of Code project. Thanks also to Preston Holmes, Tim Graham, Anssi Kääriäinen, Florian Apolloner, and Alex Gaynor for review notes along the way. Also: Fixes #8579, fixes #3055, fixes #19844.
2014-01-19Fixed #21638: Validators are now comparable, stops infinite user mig'nsAndrew Godwin
2014-01-17Adjusted inspectdb management command to yield PEP 8-compliant output ↵JustinTArthur
barring Django Coding Style exceptions.
2014-01-13Remove unneded open(.., 'U') when on python 3.Marc Tamlyn
Universal newlines is enabled by default on py3, and the usage of 'U' is deprecated in py3.4.
2014-01-12Undelete the `return True` removed in 4e0a2fe.Marc Tamlyn
This is quite important otherwise we don't close our connections to the SMTP server.
2014-01-12Fixed #21770 -- Updated autocomplete for app-loading.Aymeric Augustin
Thanks dfunckt for the report.
2014-01-12Fixed #21477 -- Renamed db to using in pre/post_migrate signals.Aymeric Augustin
2014-01-06Avoided catching ImproperlyConfigured on django.setup().Aymeric Augustin
Fixed #21737. Thanks Florian for the report. Also removed redundant imports in that file.
2014-01-02Moved django.setup() to ManagementUtilityClaude Paroz
In get_commands, setup() might already have been called, for example when the management command is called through call_command. Moving setup() to ManagementUtility so as it is only called when the command is run from command line.
2014-01-01Adjusted previous commit for Python 3.Aymeric Augustin
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.
2013-12-31Oops.Aymeric Augustin
2013-12-31Called django.setup() explicitly in management commands.Aymeric Augustin
This avoids duplicating code.
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-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 the app registry earlier at startup.Aymeric Augustin
Refs #1796, #21676.