X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/fce465da41831c71697665a594b3f9287856baaa..15dec706694c3afc006713be0fabb4973a6c2946:/src/redakcja/settings/defaults.py?ds=sidebyside diff --git a/src/redakcja/settings/defaults.py b/src/redakcja/settings/defaults.py new file mode 100644 index 00000000..688e2b6d --- /dev/null +++ b/src/redakcja/settings/defaults.py @@ -0,0 +1,67 @@ +# -*- coding: utf-8 -*- +from __future__ import absolute_import +import os.path + +PROJECT_ROOT = os.path.realpath(os.path.dirname(os.path.dirname(__file__))) + +DATABASES = { + 'default': { + 'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. + 'NAME': os.path.join(PROJECT_ROOT, 'dev.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. + } +} + +DEBUG = False + +MAINTENANCE_MODE = False + +ADMINS = ( + (u'Radek Czajka', 'radoslaw.czajka@nowoczesnapolska.org.pl'), +) + +MANAGERS = ADMINS + +# 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. +# If running in a Windows environment this must be set to the same as your +# system time zone. +TIME_ZONE = 'Europe/Warsaw' + +# Language code for this installation. All choices can be found here: +# http://www.i18nguy.com/unicode/language-identifiers.html +LANGUAGE_CODE = 'pl' + +SITE_ID = 1 + +# If you set this to False, Django will make some optimizations so as not +# to load the internationalization machinery. +USE_I18N = True +USE_L10N = True + + +# Absolute path to the directory that holds media. +# Example: "/home/media/media.lawrence.com/" +MEDIA_ROOT = PROJECT_ROOT + '/media/dynamic' +STATIC_ROOT = PROJECT_ROOT + '/../static/' + +# URL that handles the media served from MEDIA_ROOT. Make sure to use a +# trailing slash if there is a path component (optional in other cases). +# Examples: "http://media.lawrence.com", "http://example.com/media/" +MEDIA_URL = '/media/dynamic/' +STATIC_URL = '/media/static/' + +SESSION_COOKIE_NAME = "redakcja_sessionid" + +IMAGE_DIR = 'images/' + +BROKER_URL = 'django://' + +SHOW_APP_VERSION = False + +CAS_USER_ATTRS_MAP = { + 'email': 'email', 'firstname': 'first_name', 'lastname': 'last_name'}