From 8a1c3a615d9466399c252bd789e9bd5cfd5533fb Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Mon, 21 May 2012 22:34:50 +0200 Subject: Move changeable settings to seperate file --- local_settings.py.example | 36 ++++++++++++++++++++++++++++++++++++ settings.py | 37 +------------------------------------ 2 files changed, 37 insertions(+), 36 deletions(-) create mode 100644 local_settings.py.example diff --git a/local_settings.py.example b/local_settings.py.example new file mode 100644 index 0000000..91997d9 --- /dev/null +++ b/local_settings.py.example @@ -0,0 +1,36 @@ +import os +import sys + +DEPLOY_PATH = os.path.dirname(os.path.abspath(__file__)) +sys.path.insert(0, DEPLOY_PATH) +sys.path.insert(0, "/home/ryuslash/.python/lib/python2.6/site-packages/South-0.7.3-py2.6.egg") + +DEBUG = True +TEMPLATE_DEBUG = DEBUG + +ADMINS = ( + # ('Your Name', 'your_email@example.com'), +) + +DATABASES = { + 'default': { + 'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. + 'NAME': 'test.sqlite', # Or path to database file if using sqlite3. + 'USER': '', # Not used with sqlite3. + 'PASSWORD': '', # Not used with sqlite3. + 'HOST': '', # Set to empty string for localhost. Not used with sqlite3. + 'PORT': '', # Set to empty string for default. Not used with sqlite3. + } +} + +# Local time zone for this installation. Choices can be found here: +# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name +# although not all choices may be available on all operating systems. +# On Unix systems, a value of None will cause Django to use the same +# timezone as the operating system. +# If running in a Windows environment this must be set to the same as your +# system time zone. +TIME_ZONE = 'Europe/Brussels' + +# Make this unique, and don't share it with anybody. +SECRET_KEY = '' diff --git a/settings.py b/settings.py index 1b70f09..75de1a9 100644 --- a/settings.py +++ b/settings.py @@ -1,40 +1,8 @@ # Django settings for ryuslash_org project. -import os -import sys - -DEPLOY_PATH = os.path.dirname(os.path.abspath(__file__)) -sys.path.insert(0, DEPLOY_PATH) -sys.path.insert(0, "/home/ryuslash/.python/lib/python2.6/site-packages/South-0.7.3-py2.6.egg") - -DEBUG = True -TEMPLATE_DEBUG = DEBUG - -ADMINS = ( - # ('Your Name', 'your_email@example.com'), -) +from local_settings import * MANAGERS = ADMINS -DATABASES = { - 'default': { - 'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. - 'NAME': 'test.sqlite', # Or path to database file if using sqlite3. - 'USER': '', # Not used with sqlite3. - 'PASSWORD': '', # Not used with sqlite3. - 'HOST': '', # Set to empty string for localhost. Not used with sqlite3. - 'PORT': '', # Set to empty string for default. Not used with sqlite3. - } -} - -# Local time zone for this installation. Choices can be found here: -# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name -# although not all choices may be available on all operating systems. -# On Unix systems, a value of None will cause Django to use the same -# timezone as the operating system. -# If running in a Windows environment this must be set to the same as your -# system time zone. -TIME_ZONE = 'Europe/Brussels' - # Language code for this installation. All choices can be found here: # http://www.i18nguy.com/unicode/language-identifiers.html LANGUAGE_CODE = 'en-us' @@ -84,9 +52,6 @@ STATICFILES_FINDERS = ( # 'django.contrib.staticfiles.finders.DefaultStorageFinder', ) -# Make this unique, and don't share it with anybody. -SECRET_KEY = 'f3ga_iu$h^-+$xg)r2rnbiocn4qx+c(c3!9_k=!a9#)g9o5*#=' - # List of callables that know how to import templates from various sources. TEMPLATE_LOADERS = ( 'django.template.loaders.filesystem.Loader', -- cgit v1.2.3-54-g00ecf