| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
|
|
|
|
| |
Refs #23866.
|
|
|
|
| |
from code
|
|
|
|
| |
condition decorator.
|
|
|
|
| |
generators and dict comprehension
|
|
|
|
| |
#21587.
|
|
|
|
| |
RedirectView.permanent.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
I don't agree with flake8 here about the right indentation, but as long as
we're using it, we should stick to it. I don't want to disable its hanging
indent checks just because of this case.
|
|
|
|
| |
and `fields` are specified.
|
|
|
|
|
| |
Also simplified the logic under the assumption that a false-ish object
won't have an exception_reporter_filter attribute.
|
|
|
|
|
| |
This provides the opportunity to move utility functions specific to the
Django Template Language outside of django.template.loader.
|
|
|
|
|
|
| |
argument optional.
Thanks Tim Graham for the review.
|
|
|
|
| |
requests without ETag.
|
|
|
|
|
| |
Enabling the attribute causes get_object() to perform its lookup
using both the primary key and the slug.
|
|
|
|
| |
refs #23395.
|
|
|
|
|
|
|
|
| |
generic views.
Added MultipleObjectMixin.ordering and get_ordering().
Refs #21450.
|
|
|
|
|
|
| |
bad input.
This limits large variables and avoids non-utf-8 in the TECHNICAL_500 output.
|
|
|
|
| |
url().
|
|
|
|
|
|
|
|
| |
Added a class to wrap callable in settings:
* Not to call in the debug page (#21345).
* Not to break the debug page if the callable forbidding to set attributes (#23070).
Thanks @bmispelon for giving me some advice.
|
|
|
|
|
|
| |
template if Http404 is raised.
Thanks Keryn Knight for the suggestion.
|
|
|
|
|
|
|
|
| |
SuspiciousOperation is raised and DEBUG=True
Thanks GDorn and gox21 for report.
Thanks Tim Graham for idea and review.
|
|
|
|
|
| |
Fixes a regression introduced in 5f24cf9705. Refs #22635.
Thanks A.J. May for spotting the regression.
|
| |
|
| |
|
|
|
|
| |
firstof template tags.
|
|
|
|
|
|
|
|
| |
of fields is not specified.
Also applies to modelform(set)_factory and generic model views.
refs #19733.
|
|
|
|
| |
django.conf.urls.shortcut per deprecation timeline.
|
| |
|
|
|
|
|
|
|
| |
to-be-removed-in-django-XX warnings
Thanks Anssi Kääriäinen for the idea and Simon Charette for the
review.
|
|
|
|
|
|
|
|
|
|
| |
max-age, path, domain
Introduced a number of settings to configure max-age, path, and domain
for the language cookie: LANGUAGE_COOKIE_AGE, LANGUAGE_COOKIE_PATH and
LANGUAGE_COOKIE_DOMAIN.
Thanks sahid for the suggestion.
|
|
|
|
|
|
| |
docs.
Thanks to trac user nikunj.sg for the report.
|
|
|
|
| |
languages and cleaned up language session key use
|
| |
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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]
|
|
|
|
|
|
| |
ModelFormMixin.get_form_kwargs.
Thanks lagovas.lagovas at gmail.com for the report.
|
|
|
|
|
|
| |
in favor of import_string().
Thanks Aymeric Augustin for the suggestion and review.
|
|
|
|
|
|
|
|
|
| |
Following the app-loading refactor, these objects must live outside of
django.contrib.sites.models because they must be available without
importing the django.contrib.sites.models module when
django.contrib.sites isn't installed.
Refs #21680. Thanks Carl and Loic for reporting this issue.
|
| |
|
|
|
|
|
|
|
| |
The last component of the dotted path to the application module is
consistently referenced as the application "label". For instance it's
AppConfig.label. appname could be confused with AppConfig.name, which is
the full dotted path.
|
|
|
|
|
|
| |
Also renamed app_cache to apps and "app cache" to "app registry".
Deprecated AppCache.app_cache_ready() in favor of Apps.ready().
|
|
|
|
| |
Reverted 4a56a93cc458e9ab4dcab95d9f5067d4975dd1a2.
|
|
|
|
| |
Used the app cache's get_app_configs() method instead.
|
|
|
|
|
|
| |
in generic views.
Thanks to trac user adepue for the report and original patch.
|
|
|
|
|
|
| |
a more precise exception.
Thanks to Keryn Knight for the report.
|
|
|
|
|
|
|
| |
URLconf detection code.
Thanks to @dmyerscoug for the report and original patch
and to @alasdairnicol for the added tests.
|
| |
|