summaryrefslogtreecommitdiff
path: root/django/core
AgeCommit message (Collapse)Author
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.
2019-06-15Refs #30451 -- Added HttpRequest._set_content_type_params() hook.Mariusz Felisiak
2019-06-13Fixed #30512 -- Used email.headerregistry.parser for parsing emails in ↵Joachim Jablon
sanitize_address().
2019-05-08Used time.monotonic() instead of time.time() where applicable.Przemysław Suliga
time.monotonic() available from Python 3.3: - Nicely communicates a narrow intent of "get a local system monotonic clock time" instead of possible "get a not necessarily accurate Unix time stamp because it needs to be communicated to outside of this process/machine" when time.time() is used. - Its result isn't affected by the system clock updates. There are two classes of time.time() uses changed to time.monotonic() by this change: - measuring time taken to run some code. - setting and checking a "close_at" threshold for for persistent db connections (django/db/backends/base/base.py).
2019-05-02Fixed #30396 -- Added system checks for uniqueness of indexes and ↵can
constraints names. Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2019-04-30Fixed #30418 -- Added --skip-checks management command option.Jon Dufresne
2019-04-25Removed redundant os.path.abspath() call.Jon Dufresne
2019-04-25Fixed #30393 -- Added validation of startapp's directory option.oliver
2019-04-25Fixed #30388 -- Made inspectdb generate OneToOneFields rather than ↵Ville Skyttä
ForeignKey(unique/primary_key=True).
2019-04-24Refs #30241 -- Fixed BytesWarning emitted in test_translation tests.Jon Dufresne
2019-04-24Removed unnecessary assignments in various code.Jon Dufresne
2019-04-24Fixes #30342 -- Removed a system check for LANGUAGES_BIDI setting.Matthias Kestenholz
This partly reverts commit 4400d8296d268f5a8523cd02ddc33b12219b2535.
2019-04-18Fixed typos in docs, comments, and exception messages.Ville Skyttä
2019-03-30Made startapp/project's overlaying error message use 'app' or 'project'.oliver
2019-03-30Fixed #30301 -- Removed OutputWrapper.__init__()'s style_func arg.Tim Graham
Unused since 533532302ae842c95cf7294ef6cd7f3e2bfaca65.
2019-03-28Fixed #30241 -- Added more system checks of translation settings.Nick Pope
2019-03-28Refs #29713 -- Improved error message when LANGUAGE_CODE is invalid.Nick Pope
2019-03-28Fixed "byte string" typo in various docs and comments.Mariusz Felisiak
2019-03-08Fixed #30186 -- Made showmigrations --list display the applied datetimes at ↵tschilling
verbosity 2+.
2019-03-07Fixed #30189 -- Removed transaction from sqlmigrate output if database ↵Parth Patil
doesn't use one.
2019-02-14Fixed #30181 -- Made cache.get() with default work correctly on PyLibMCCache ↵Jakub Szafrański
if None is cached.
2019-02-13Fixed #30184 -- Removed ellipsis characters from shell output strings.Dan Davis
Partially reverted 50b8493581fea3d7137dd8db33bac7008868d23a (refs #29654) to avoid a crash when the user shell doesn't support non-ASCII characters.
2019-02-08Simplified FileBasedCache.clear().Jon Dufresne
glob.glob1() ignores missing paths.
2019-02-06Refs #27753 -- Favored force/smart_str() over force/smart_text().Aymeric Augustin
2019-02-06Fixed #30159 -- Removed unneeded use of OrderedDict.Nick Pope
Dicts preserve order since Python 3.6.
2019-01-31Fixed #30147 -- Simplified directory creation with os.makedirs(..., ↵Jon Dufresne
exist_ok=True).
2019-01-30Fixed #30116 -- Dropped support for Python 3.5.Tim Graham
2019-01-28Fixed #29973 -- Added compilemessages --ignore option.rsiemens
2019-01-28Refs #29973 -- Extracted helper functions from makemessages.rsiemens
2019-01-28Fixed #30137 -- Replaced OSError aliases with the canonical OSError.Jon Dufresne
Used more specific errors (e.g. FileExistsError) as appropriate.
2019-01-27Removed default mode='r' argument from calls to open().Jon Dufresne
2019-01-23Fixed #30123 -- Removed tuple support in DatabaseIntrospection.get_field_type().Nick Pope
Support for returning tuples was undocumented and error prone.
2019-01-17Refs #28370 -- Removed support for the context arg of Field.from_db_value() ↵Tim Graham
and Expression.convert_value(). Per deprecation timeline.
2019-01-13Fixed #27685 -- Added watchman support to the autoreloader.Tom Forbes
Removed support for pyinotify (refs #9722).
2019-01-12Fixed #30057 -- Fixed diffsettings ignoring custom configured settings.orlnub123
Regression in 49b679371fe9beddcd23a93b5fdbadea914f37f8.
2018-12-26Fixed #30058 -- Made SMTP EmailBackend.send_messages() return 0 for ↵Denis Stebunov
empty/error cases.
2018-12-24Fixed #20098 -- Added a check for model Meta.db_table collisions.Sanyam Khurana
2018-12-20Refs #30015 -- Added 2.1.5 release note and removed 'we' in comments.Carlton Gibson
2018-12-19Fixed #30031 -- Added --no-header option to makemigrations/squashmigrations.Dakota Hawkins
2018-12-19Fixed #30015 -- Ensured request body is properly consumed for keep-alive ↵Konstantin Alekseev
connections.
2018-11-27Fixed #28385 -- Fixed deserializing natural keys when primary key has a ↵dmytryi.striletskyi
default value. Co-Authored-By: Hasan Ramezani <hasan.r67@gmail.com>
2018-11-21Fixed #29949 -- Refactored db introspection identifier converters.Mariusz Felisiak
Removed DatabaseIntrospection.table_name_converter()/column_name_converter() and use instead DatabaseIntrospection.identifier_converter(). Removed DatabaseFeatures.uppercases_column_names. Thanks Tim Graham for the initial patch and review and Simon Charette for the review.
2018-11-20Refs #24829 -- Removed TemplateResponse rendering in BaseHandler.get_response().Tim Graham
Obsolete since 742ea51413b3aab07c6afbfd1d52c1908ffcb510.
2018-11-20Corrected docs and removed unused code for got_request_exception signal's ↵Tim Graham
sender argument. Inaccurate since 7d1b69dbe7f72ac04d2513f0468fe2146231b286.
2018-11-20Removed BaseHandler.get_exception_response().Tim Graham
Unused since 7d1b69dbe7f72ac04d2513f0468fe2146231b286.
2018-11-19Refs #29722 -- Added introspection of partitions for PostgreSQL.Nick Pope
2018-11-14Fixed #25884 -- Fixed migrate --run-syncdb when specifying an app label.Sarah Guermond
2018-11-10Fixed keep-alive support in manage.py runserver.Florian Apolloner
Ticket #25619 changed the default protocol to HTTP/1.1 but did not properly implement keep-alive. As a "fix" keep-alive was disabled in ticket #28440 to prevent clients from hanging (they expect the server to send more data if the connection is not closed and there is no content length set). The combination of those two fixes resulted in yet another problem: HTTP/1.1 by default allows a client to assume that keep-alive is supported unless the server disables it via 'Connection: close' -- see RFC2616 8.1.2.1 for details on persistent connection negotiation. Now if the client receives a response from Django without 'Connection: close' and immediately sends a new request (on the same tcp connection) before our server closes the tcp connection, it will error out at some point because the connection does get closed a few milli seconds later. This patch fixes the mentioned issues by always sending 'Connection: close' if we cannot determine a content length. The code is inefficient in the sense that it does not allow for persistent connections when chunked responses are used, but that should not really cause any problems (Django does not generate those) and it only affects the development server anyways. Refs #25619, #28440.
2018-11-09Fixed signing.dumps() example for Python 3.minusf
2018-10-31Fixed #29890 -- Fixed FileSystemStorage crash if concurrent saves try to ↵Tim Graham
create the same directory. Regression in 632c4ffd9cb1da273303bcd8005fff216506c795.