summaryrefslogtreecommitdiff
path: root/django/core
AgeCommit message (Collapse)Author
2013-10-21Fixed #19724 -- Output note when showing only core management commandsClaude Paroz
When listing available management commands, only core commands are listed if settings have any error. This commit adds a note in this case so errors are not totally silently skipped. Thanks Peter Davis for the report.
2013-10-21Fixed #21275 -- Fixed a serializer error when generating migrations for ↵Loic Bistuer
contrib.auth. The migration serializer now looks for a deconstruct method on any object.
2013-10-21Fixed #21288 -- Fixed E126 pep8 warningsAlasdair Nicol
2013-10-18Fixed #21287 -- Fixed E123 pep8 warningsAlasdair Nicol
2013-10-18Fixed #21268 -- Fixed E303 pep8 warningsAlasdair Nicol
2013-10-18Fixed #21267 -- Fixed E502 pep8 warningsAlasdair Nicol
2013-10-17Fixed #21285 -- Fixed E121,E122 pep8 warningsAlasdair Nicol
2013-10-17Fixed #21284 -- Prevented KeyError swallowing in fetch_commandClaude Paroz
Thanks wildfire for the report.
2013-10-17Fixed #18659 -- Deprecated request.REQUEST and MergeDictBouke Haarsma
Thanks Aymeric Augustin for the suggestion.
2013-10-17Fixed #21280 -- Don't generate empty migration filesJaved Khan
2013-10-17Fixed #21270 -- Fixed E701 pep8 warningsAlasdair Nicol
2013-10-16Add get_migratable_models util method to ConnectionRouterClaude Paroz
2013-10-16Fixed #19657 -- Made sql commands honor allow_migrateClaude Paroz
Thanks Manel Clos for the report and the initial patch, and Marc Tamlyn and Tim Graham for the review.
2013-10-16First pass on squashmigrations command; files are right, execution not.Andrew Godwin
2013-10-15Fixed #7603 -- Added a 'scheme' property to the HttpRequest objectUnai Zalakain
`HttpRequest.scheme` is `https` if `settings.SECURE_PROXY_SSL_HEADER` is appropriately set and falls back to `HttpRequest._get_scheme()` (a hook for subclasses to implement) otherwise. `WSGIRequest._get_scheme()` makes use of the `wsgi.url_scheme` WSGI environ variable to determine the request scheme. `HttpRequest.is_secure()` simply checks if `HttpRequest.scheme` is `https`. This provides a way to check the current scheme in templates, for example. It also allows us to deal with other schemes. Thanks nslater for the suggestion.
2013-10-14Fixed #21266 -- Fixed E201,E202 pep8 warnings.Larry O'Neill
2013-10-14Fixed #21269 -- Don't crash when CommandError contains non-asciiClaude Paroz
Thanks kontakt@eikefoken.de for the report.
2013-10-14Fixed #15888 -- Made tablename argument of createcachetable optionalClaude Paroz
Thanks Aymeric Augustin for the report and the documentation and Tim Graham for the review.
2013-10-11Fixed #13252 -- Added ability to serialize with natural primary keys.Tai Lee
Added ``--natural-foreign`` and ``--natural-primary`` options and deprecated the ``--natural`` option to the ``dumpdata`` management command. Added ``use_natural_foreign_keys`` and ``use_natural_primary_keys`` arguments and deprecated the ``use_natural_keys`` argument to ``django.core.serializers.Serializer.serialize()``. Thanks SmileyChris for the suggestion.
2013-10-11Fixed #8918 -- Made FileField.upload_to optional.Tim Graham
Thanks leahculver for the suggestion and dc and vajrasky for work on the patch.
2013-10-11Fixed assorted flake8 errors.Tim Graham
2013-10-10Whitespace cleanup.Tim Graham
* Removed trailing whitespace. * Added newline to EOF if missing. * Removed blank lines at EOF. * Removed some stray tabs.
2013-10-10Used "is" for comparisons with None.Tim Graham
2013-10-08Refs #21197 -- Clarified upgrade check message.Russell Keith-Magee
Thanks to Carl and Shai for the discussion.
2013-10-05Fixed #21189: Cleaned up usage of bare except clauses.Baptiste Mispelon
Thanks to berkerpeksag for the report and to claudep for the review.
2013-10-01Fixed #21209 -- .po file path comments on Windows.Ramiro Morales
Literals from source files with Django template language syntax don't have a '.py' suffix anymore. Also, the '.\' prefix is preserved to respect GNU gettext behavior on that platform. Refs #16903.
2013-10-01Fixed #21147 -- Avoided time.time precision issue with cache backends.Michael Manfre
The precision of time.time() is OS specific and it is possible for the resolution to be low enough to allow reading a cache key previously set with a timeout of 0.
2013-09-26Fixed #21146 - DatabaseCache converts expires to python valueMichael Manfre
DatabaseCache uses raw cursors to bypass the ORM. This prevents it from being used by database backends that require special handling of datetime values. There is no easy way to test this, so no tests added.
2013-09-23Fixed #14028 - Added validation for clashing db_columns.Helen ST
Thanks akaariai for the suggestion.
2013-09-22Fixed "Address already in use" from liveserver.Florian Apolloner
Our WSGIServer rewrapped the socket errors from server_bind into WSGIServerExceptions, which is used later on to provide nicer error messages in runserver and used by the liveserver to see if the port is already in use. But wrapping server_bind isn't enough since it only binds to the socket, socket.listen (which is called from server_activate) could also raise "Address already in use". Instead of overriding server_activate too I chose to just catch socket errors, which seems to make more sense anyways and should be more robust against changes in wsgiref.
2013-09-19Fixed #18744 -- Updated docstring to highlight limitations of NamedTemporaryFileKevin Christopher Henry
- Noted that this does not allow for reading and writing the same open file in different processes under Windows. - Noted that the keyword arguments to NamedTemporaryFile no longer match the Python version.
2013-09-19Fixed #21125 -- Removed support for cache URI syntaxCurtis Maloney
2013-09-17Fixed #21115 -- Fixed NameError in migrate --list commandMarkus Holtermann
2013-09-14Fixed #21097 - Added DatabaseFeature.can_introspect_autofieldMichael Manfre
2013-09-11Fixed #21090 -- Allowed backends to provide dotted field path to inspectdb.Michael Manfre
2013-09-10Fixed #20841 -- Added messages to NotImplementedErrorsGregor MacGregor
Thanks joseph at vertstudios.com for the suggestion.
2013-09-10Fixed #21057 -- Prevented FileSystemStorage from leaving temporary files.John Hensley
2013-09-10Fixed #21033 -- Fixed uploaded filenames not always being truncated to 255 ↵homm
characters
2013-09-07Fixed #20557 -- Properly decoded non-ASCII cookies on Python 3.Aymeric Augustin
Thanks mitsuhiko for the report. Non-ASCII values are supported. Non-ASCII keys still aren't, because the current parser mangles them. That's another bug.
2013-09-07Minor cleanup in the WSGI handler.Aymeric Augustin
2013-09-07Refactored the unmangling of the WSGI environ.Aymeric Augustin
2013-09-07Moved two WSGI-specific functions to the WSGI handler.Aymeric Augustin
They were defined in base when the mod_python handler used them. See bfcecbff.
2013-09-06Fixed a number of flake8 errors -- particularly around unused imports and ↵Alex Gaynor
local variables
2013-09-06Merge pull request #1566 from adamsc64/ticket_11857Russell Keith-Magee
Fixed #11857 -- Added missing 'closed' property on TemporaryFile class.
2013-09-06Fixed Python 3 syntax error introduced in [c72392da]Tim Graham
2013-09-06Merge pull request #1582 from ↵Russell Keith-Magee
rca/12756-missing-yaml-module-serializer-error-message Fixed #12756: Improved error message when yaml module is missing.
2013-09-06Cleanup commit after peer review.Roberto Aguilar
2013-09-06Add -l alias for migrate --listAndrew Godwin
2013-09-06Moved get_serializer() call in dumpdata command.Roberto Aguilar
Moved the get_serializer() call within the condition that checks public serializers. This will allow exceptions other than SerializerDoesNotExist to be raised in order to provide the caller with useful information, e.g when pyyaml is not installed.
2013-09-06Added yaml directly into BUILTIN_SERIALIZERS.Roberto Aguilar
The serializer definitely exists, but the dependent yaml module may not be installed. The register_serializer() function will catch exceptions and will stub in a fake serializer object that will raise the exception when the serializer is used.