Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/django/conf/__init__.py
Commit message (Collapse)AuthorAgeFilesLines
...
* Prevented Django from running with an empty secret key. ↵Aymeric Augustin2012-03-311-1/+2
| | | | | | | | | Refs #17800. This accelerated deprecation schedule was documented in r17617. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17836 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Actually warn on empty SECRET_KEY instead of raising a ↵Carl Meyer2012-03-151-1/+1
| | | | | | warning as an exception. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17745 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Modified the error when SECRET_KEY is missing to be a ↵Paul McMillan2012-03-021-1/+1
| | | | | | DeprecationWarning. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17616 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #17800 -- Prevented Django from starting without a ↵Aymeric Augustin2012-03-011-0/+3
| | | | | | SECRET_KEY, since that opens a variety of security problems. Thanks PaulM for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17611 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Don't let ALLOWED_INCLUDE_ROOTS be accidentally set to a ↵Chris Beaven2012-02-221-1/+5
| | | | | | string rather than a tuple. Thanks to Florian Apolloner for pointing this out. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17571 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #16247 -- Removed wildcard expansion of ↵Aymeric Augustin2011-11-271-17/+0
| | | | | | application names in INSTALLED_APPS. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17158 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #16568 -- Added RequireDebugFalse filter to ↵Carl Meyer2011-09-161-7/+2
| | | | | | prevent sending 500 error emails when DEBUG is True in projects with no explicit LOGGING setting. Thanks to Andreas Pelme for report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16840 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #16050 -- BACKWARDS-INCOMPATIBLE CHANGE: Moved ↵Jannis Leidel2011-06-301-1/+4
| | | | | | | | | | static files of the admin to conventional file system location. This also removes the need for ADMIN_MEDIA_PREFIX and replaces it with the convention to find admin's static files at STATIC_URL + 'admin/'. Thanks to Jacob for the review and general help. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16487 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #16288 -- Enabled django.request exception logger ↵Carl Meyer2011-06-221-0/+41
| | | | | | | | regardless of DEBUG setting. Thanks Matt Bennett for report and draft patch; Vinay Sajip and Russell Keith-Magee for review. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16444 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fix the staticfiles_tests and django.conf to not think ↵Alex Gaynor2011-06-011-4/+4
| | | | | | that None meant a lazy object hadn't been evaluated. Thanks to Jannis for informing me that I broke the test suite (if you were harmed by this I'll buy you a cookie). Sorry. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16310 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Advanced deprecation for MEDIA_URL and STATIC_URL ↵Russell Keith-Magee2011-04-021-1/+1
| | | | | | without a trailing slash. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15969 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #10654 -- Removed 'Does it have syntax errors' ↵Adrian Holovaty2011-03-151-1/+1
| | | | | | from the ImportError in django/conf/__init__.py. Evidently syntax errors raise a SyntaxError. Thanks, gutworth and alexr git-svn-id: http://code.djangoproject.com/svn/django/trunk@15812 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #6218 -- Made MEDIA_URL and STATIC_URL require a ↵Jannis Leidel2011-01-021-2/+16
| | | | | | trailing slash to ensure there is a consistent way to combine paths in templates. Thanks to Michael Toomim, Chris Heisel and Chris Beaven. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15130 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #12012 -- Added support for logging. Thanks to ↵Russell Keith-Magee2010-10-041-0/+11
| | | | | | Vinay Sajip for his draft patch, and to the many people who gave feedback during development of the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13981 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #13827 -- Cleaned up a few unnecessary function calls.Jannis Leidel2010-09-261-1/+1
| | | | git-svn-id: http://code.djangoproject.com/svn/django/trunk@13876 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* When possible, sanity check the timezone setting to see ↵Malcolm Tredinnick2010-09-101-0/+6
| | | | | | | | | | | if the Unix-like box it's running on supports that setting. If checking isn't possible, we skip it. Patch from seveas. Thanks. Fixed #3415. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13722 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #1480 -- Added the ability to use the system ↵Russell Keith-Magee2010-02-261-1/+1
| | | | | | timezone. Thanks to Ramiro Morales for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12602 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Changed a whole bunch of places to raise exception ↵Adrian Holovaty2010-01-101-2/+2
| | | | | | instances instead of old-style raising exception classes plus a comma. Good for the future Python 3 conversion git-svn-id: http://code.djangoproject.com/svn/django/trunk@12180 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #12336 - infinite recursion in dir(UserSettingsHolder)Luke Plant2009-12-091-1/+1
| | | | | | | | | | This is a regression introduced in trunk, so it does not need to be backported. Thanks to miracle2k for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11799 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed non-standard introspection support in LazyObject.Luke Plant2009-10-191-4/+4
| | | | | | | | | | | | LazyObject called a public method ``get_all_members`` on wrapped objects in order to allow introspection. This could easily cause name clashes with existing methods on wrapped objects, and so has been changed to use the standard methods. This could be slightly backwards-incompatible, in obscure cases, if the undocumented LazyObject has been used externally. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11636 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #8193: all dynamic imports in Django are now done ↵Jacob Kaplan-Moss2009-03-181-2/+4
| | | | | | correctly. I know this because Brett Cannon borrowed the time machine and brought Python 2.7's '`importlib` back for inclusion in Django. Thanks for the patch-from-the-future, Brett! git-svn-id: http://code.djangoproject.com/svn/django/trunk@10088 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #10526 -- More fixes when specifying installed ↵Malcolm Tredinnick2009-03-181-1/+3
| | | | | | | | apps using "foo.*". This adds a case that was missed in r9924: underscore handling. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10078 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #9323 -- Allow glob loading in INSTALLED_APPS to ↵Malcolm Tredinnick2009-03-081-1/+1
| | | | | | | | handle digits in names. Patch from carljm. git-svn-id: http://code.djangoproject.com/svn/django/trunk@9994 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #10392 -- Fixed an oversight from the refactoring ↵Malcolm Tredinnick2009-03-021-1/+1
| | | | | | in r9945. git-svn-id: http://code.djangoproject.com/svn/django/trunk@9953 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Factor out some common pieces of django.conf.LazySettings.Malcolm Tredinnick2009-03-021-28/+7
| | | | | | This is in preparation for some reuse elsewhere in the core code. git-svn-id: http://code.djangoproject.com/svn/django/trunk@9945 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #8242: handle `foo.*` consistantly in INSTALLED_APPS.Jacob Kaplan-Moss2008-08-251-1/+3
| | | | git-svn-id: http://code.djangoproject.com/svn/django/trunk@8538 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #7643 -- Fixed an oversight from [7844].Malcolm Tredinnick2008-07-061-0/+7
| | | | | | | Now makemessages works in projects again. Based on a patch from Horst Gutmann. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7848 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Changed the ImportError message from [6832] to improve ↵Adrian Holovaty2007-12-191-1/+3
| | | | | | wording git-svn-id: http://code.djangoproject.com/svn/django/trunk@6943 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #5743 -- Tweaked the exceptions raised when ↵Malcolm Tredinnick2007-12-021-3/+3
| | | | | | | | | | importing settings so that we cooperate with Python's standard help() function. Patch from ionut_bizau and Ben Slavin. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6832 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #2920 -- Removed _() from builtins.Malcolm Tredinnick2007-10-211-10/+0
| | | | | | | This is backwards incompatible, but easy to work around. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6582 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #3350 -- Fixed timezone setting. Thanks, Matt Boersma.Malcolm Tredinnick2007-09-151-0/+1
| | | | git-svn-id: http://code.djangoproject.com/svn/django/trunk@6300 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #4884 -- Fixed an initialisation problem when ↵Malcolm Tredinnick2007-07-161-0/+2
| | | | | | | | | assigned to settings before accessing them. Thanks, Noam Raphael. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5713 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #2315 -- added work around for Windows timezone ↵Malcolm Tredinnick2007-02-121-2/+5
| | | | | | | | | setting (i.e. we can't do it). This will work until somebody wants to write some full Win32 timezone changing code for us. Thanks to Marc Fargas and SmileyChris for the combined patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4487 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #2968 -- Changed arguments to __import__ to use ↵Adrian Holovaty2006-10-301-2/+2
| | | | | | empty dictionary instead of empty string, for stricter compliance with Python library reference. Thanks for the patch, Yasushi Masuda git-svn-id: http://code.djangoproject.com/svn/django/trunk@3951 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed a bunch of spurious imports, typos, and other ↵Jacob Kaplan-Moss2006-07-211-1/+0
| | | | | | small errors turned up by a pass through PyFlakes. This covers about the first third of the errors. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3411 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Made django/utils/translation.py into a package ↵Adrian Holovaty2006-07-041-4/+11
| | | | | | django/utils/translation, which is loaded lazily depending on the value of settings.USE_I18N. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3271 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #2109 -- Convert old-style classes to new-style ↵Adrian Holovaty2006-06-081-3/+3
| | | | | | classes throughout Django. Thanks, Nicola Larosa git-svn-id: http://code.djangoproject.com/svn/django/trunk@3113 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Added comment explaining nonobvious self.__dict__ ↵Adrian Holovaty2006-05-171-0/+2
| | | | | | assignment in django.conf.__init__.py git-svn-id: http://code.djangoproject.com/svn/django/trunk@2929 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #1321 -- Made DJANGO_SETTINGS_MODULE optional. You ↵Adrian Holovaty2006-05-161-13/+78
| | | | | | can now call django.conf.settings.configure() to set settings manually if you don't have a settings module. Thanks, Malcolm Tredinnick, Luke Plant, Fredrik Lundh git-svn-id: http://code.djangoproject.com/svn/django/trunk@2927 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* MERGED MAGIC-REMOVAL BRANCH TO TRUNK. This change is ↵Adrian Holovaty2006-05-021-0/+73
| | | | | | highly backwards-incompatible. Please read http://code.djangoproject.com/wiki/RemovingTheMagic for upgrade instructions. git-svn-id: http://code.djangoproject.com/svn/django/trunk@2809 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Imported Django from private SVN repository (created ↵Adrian Holovaty2005-07-131-0/+0
from r. 8825) git-svn-id: http://code.djangoproject.com/svn/django/trunk@3 bcc190cf-cafb-0310-a4f2-bffc1f526a37