X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;ds=inline;f=apps%2Fsettings.py;h=68837b3d16297b28228dd845befa413be0852f8a;hb=ad4715cef72910b1310d4b93a2294ace878b0b4a;hp=719b9d174cbfb82a16690cd3515f793a6b0a70d3;hpb=6c05b0fcd8cdaaeadc5de7c3d575dd3be88e43d4;p=patchwork diff --git a/apps/settings.py b/apps/settings.py index 719b9d1..68837b3 100644 --- a/apps/settings.py +++ b/apps/settings.py @@ -9,7 +9,7 @@ ADMINS = ( MANAGERS = ADMINS -DATABASE_ENGINE = 'postgresql' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'ado_mssql'. +DATABASE_ENGINE = 'postgresql_psycopg2' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'ado_mssql'. DATABASE_NAME = 'patchwork' # Or path to database file if using sqlite3. DATABASE_USER = '' # Not used with sqlite3. DATABASE_PASSWORD = '' # Not used with sqlite3. @@ -62,6 +62,7 @@ MIDDLEWARE_CLASSES = ( 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.middleware.doc.XViewMiddleware', + 'django.middleware.csrf.CsrfViewMiddleware', ) ROOT_URLCONF = 'apps.urls' @@ -97,3 +98,16 @@ DEFAULT_PATCHES_PER_PAGE = 100 DEFAULT_FROM_EMAIL = 'Patchwork ' ACCOUNT_ACTIVATION_DAYS = 7 + +# Set to True to enable the Patchwork XML-RPC interface +ENABLE_XMLRPC = False + +try: + from local_settings import * +except ImportError, ex: + import sys + sys.stderr.write(\ + ("settings.py: error importing local settings file:\n" + \ + "\t%s\n" + \ + "Do you have a local_settings.py module?\n") % str(ex)) + raise