| Age | Commit message (Collapse) | Author |
|
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.
Backport of d0889863de50d65659f56f0b9ea0672a8b6482a1 from master.
|
|
Backport of e569144910e336d2f76a3a31998ec672377d31cc from master.
|
|
Backport of 5954aa6db0 from master
|
|
Thanks brylie.
Backport of 89b9e6e5d6 from master
|
|
Backport of 536ebaa048f69c18aa36448074f65f2741e35df5 from master.
|
|
Backport of e520a73ee from master.
|
|
Code borrowed from django.contrib.admin.tests. Without this, the class can
throw an exception with something like "The browser appears to have exited
before we could connect. The output was: Error: no display specified"
Backport of e2ac0203d9 from master
|
|
Thanks Piotr Kasprzyk for help with the patch.
|
|
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.
|
|
language session key use
|
|
Refs #21725.
|
|
|
|
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]
|
|
encoded responses.
Thanks leahculver for the suggestion and Erik Romijn,
Simon Charette, and Marc Tamlyn for the reviews.
|
|
This (nearly) completes the work to isolate all the test modules from
each other. This is now more important as importing models from another
module will case PendingDeprecationWarnings if those modules are not in
INSTALLED_APPS. The only remaining obvious dependencies are:
- d.c.auth depends on d.c.admin (because of the is_admin flag to some
views), but this is not so important and d.c.admin is in
always_installed_apps
- test_client_regress depends on test_client. Eventually these should
become a single module, as the split serves no useful purpose.
|
|
This reverts commit 08c9ab5a0f564a3ac7803e6a97fae855f2e0524e.
|
|
|
|
It's now easier to achieve the same effect with modify_settings or
override_settings.
|
|
|
|
|
|
|
|
Reverted 4a56a93cc458e9ab4dcab95d9f5067d4975dd1a2.
|
|
Used the app cache's get_app_configs() method instead.
|
|
|
|
|
|
Thanks to @dmyerscoug for the report and original patch
and to @alasdairnicol for the added tests.
|
|
|
|
Thanks productions@zaziork.co.uk for the review.
|
|
Thanks to Henrik Levkowetz and olau for their reports and initial patches.
|
|
|
|
Signed-off-by: Jason Myers <jason@jasonamyers.com>
|
|
|
|
Thanks to Claude Paroz for the original patch.
|
|
* Missing tests for ticket #12744
* Tests for the cleanse_setting feature (leaving out sensitive
settings from the debug page)
|
|
Thanks to crass for the report.
|
|
|
|
Added a refresh() before quit() in the selenium tests, since this
solves the problem of spurious test failures in some environments.
|
|
The old 'django_language' variable will still be read from in order
to migrate users. The backwards-compatability shim will be removed in
Django 1.8.
Thanks to jdunck for the report and stugots for the initial patch.
|
|
|
|
|
|
* Removed trailing whitespace.
* Added newline to EOF if missing.
* Removed blank lines at EOF.
* Removed some stray tabs.
|
|
That commit didn't always improve readability.
See discussion on django-developers for details.
|
|
Thanks simonpercivall for the report and bmispelon for the review.
|
|
TEMPLATE_DIRS.
* django.template.loader.get_template()
* django.template.loader.select_template()
* django.shortcuts.render()
* django.shortcuts.render_to_response()
Thanks amcnabb for the suggestion.
|
|
|
|
|
|
|
|
fixes #21058. by jambonrose and ianawilson
|
|
Python 2.7 allows to combine several 'with' instructions.
|
|
While using USE_L10N, line numbers and IDs were printed as comma (or
locale equivalent) separated values.
Thanks Kronuz for the report and intial patch.
Fixes #20861.
|