[snowy] Moving MIDDLEWARE_CLASSES, TEMPLATE_DIRS, and INSTALLED_APPS from tuples to lists



commit f40f844a31ccd0edd7e9b39b96e3800c0dc8d100
Author: Jeff Schroeder <jeffschroeder computer org>
Date:   Thu Oct 21 18:09:06 2010 -0700

    Moving MIDDLEWARE_CLASSES, TEMPLATE_DIRS, and INSTALLED_APPS from tuples to lists
    
    This lets users add site-specific apps (such as django-sentry) to local_settings.py

 settings.py |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/settings.py b/settings.py
index b5424d9..fd4b6e9 100644
--- a/settings.py
+++ b/settings.py
@@ -81,7 +81,7 @@ TEMPLATE_CONTEXT_PROCESSORS = (
     'snowy.core.context_processors.current_site',
 )
 
-MIDDLEWARE_CLASSES = (
+MIDDLEWARE_CLASSES = [
     'django.middleware.common.CommonMiddleware',
     'django.contrib.csrf.middleware.CsrfViewMiddleware',
     'django.contrib.csrf.middleware.CsrfResponseMiddleware',
@@ -93,16 +93,16 @@ MIDDLEWARE_CLASSES = (
     #'reversion.middleware.RevisionMiddleware',
     'recaptcha_django.middleware.ReCaptchaMiddleware',
     'pagination.middleware.PaginationMiddleware',
-)
+]
 
 ROOT_URLCONF = 'snowy.urls'
 
-TEMPLATE_DIRS = (
+TEMPLATE_DIRS = [
     # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
     # Always use forward slashes, even on Windows.
     # Don't forget to use absolute paths, not relative paths.
     os.path.join(PROJECT_ROOT, "templates"),
-)
+]
 
 # Add the lib/ directory to the path for external apps
 EXTERNAL_APPS_PATH = os.path.join(PROJECT_ROOT, "lib")
@@ -110,7 +110,7 @@ EXTERNAL_APPS_PATH = os.path.join(PROJECT_ROOT, "lib")
 import sys
 sys.path.append(EXTERNAL_APPS_PATH)
 
-INSTALLED_APPS = (
+INSTALLED_APPS = [
     # Local apps
     'core',
     'api',
@@ -135,7 +135,7 @@ INSTALLED_APPS = (
     'autoslug',
     'piston',
     'pagination',
-)
+]
 
 # Maximum number of notes to show on the notes_detail list.
 SNOWY_LIST_MAX_NOTES = 18



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]