diff options
author | Dan McGee <dan@archlinux.org> | 2011-01-06 17:30:46 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-01-06 17:30:46 +0100 |
commit | 8d7941c1ddc40623d7050bb0809453603f6ccad9 (patch) | |
tree | 6b0a448de02cf162e61fea79cd122ff321270f4c | |
parent | d8b1f9982466a4a4e8c224f335767084a5c6a301 (diff) | |
download | archweb-8d7941c1ddc40623d7050bb0809453603f6ccad9.tar.gz archweb-8d7941c1ddc40623d7050bb0809453603f6ccad9.tar.xz |
Settings file tweaks
Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r-- | settings.py | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/settings.py b/settings.py index 6b6e0cc..8e916e3 100644 --- a/settings.py +++ b/settings.py @@ -29,14 +29,6 @@ DEFAULT_CHARSET = 'utf-8' SITE_ID = 1 -# If you set this to False, Django will make some optimizations so as not -# to load the internationalization machinery. -USE_I18N = False - -# If you set this to False, Django will not format dates, numbers and -# calendars according to the current locale -USE_L10N = False - # Default date format in templates for 'date' filter DATE_FORMAT = 'Y-m-d' @@ -45,10 +37,13 @@ DATE_FORMAT = 'Y-m-d' # Examples: "http://foo.com/media/", "/media/". ADMIN_MEDIA_PREFIX = '/media/admin_media/' -# login url +# Login URL configuration LOGIN_URL = '/login/' LOGIN_REDIRECT_URL = '/' +# Set django's User stuff to use our profile model +AUTH_PROFILE_MODULE = 'main.UserProfile' + # List of callables that know how to import templates from various sources. TEMPLATE_LOADERS = ( 'django.template.loaders.filesystem.load_template_source', @@ -94,12 +89,8 @@ TEMPLATE_LOADERS = ( 'django.template.loaders.app_directories.Loader', ) -# Set django's User stuff to use our profile model -# format is app.model -AUTH_PROFILE_MODULE = 'main.UserProfile' - +# Configure where sessions and messages should reside MESSAGE_STORAGE = 'django.contrib.messages.storage.session.SessionStorage' - SESSION_ENGINE = 'django.contrib.sessions.backends.cached_db' INSTALLED_APPS = ( |