3 PROJECT_ROOT = path.realpath(path.dirname(__file__))
14 'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
15 'NAME': path.join(PROJECT_ROOT, 'dev.sqlite'), # Or path to database file if using sqlite3.
16 'USER': '', # Not used with sqlite3.
17 'PASSWORD': '', # Not used with sqlite3.
18 'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
19 'PORT': '', # Set to empty string for default. Not used with sqlite3.
23 # Local time zone for this installation. Choices can be found here:
24 # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
25 # although not all choices may be available on all operating systems.
26 # If running in a Windows environment this must be set to the same as your
30 # Language code for this installation. All choices can be found here:
31 # http://www.i18nguy.com/unicode/language-identifiers.html
36 # If you set this to False, Django will make some optimizations so as not
37 # to load the internationalization machinery.
40 # Absolute path to the directory that holds media.
41 # Example: "/home/media/media.lawrence.com/"
42 MEDIA_ROOT = path.join(PROJECT_ROOT, '../../media/')
44 # URL that handles the media served from MEDIA_ROOT. Make sure to use a
45 # trailing slash if there is a path component (optional in other cases).
46 # Examples: "http://media.lawrence.com", "http://example.com/media/"
49 STATIC_ROOT = path.join(PROJECT_ROOT, '../../static/')
50 STATIC_URL = '/static/'
53 path.join(PROJECT_ROOT, 'static'),
56 ROOT_URLCONF = 'cas.urls'
60 'BACKEND': 'django.template.backends.django.DjangoTemplates',
63 PROJECT_ROOT + '/templates',
66 'context_processors': [
67 "django.contrib.auth.context_processors.auth",
68 "django.template.context_processors.debug",
69 "django.template.context_processors.i18n",
70 "django.template.context_processors.media",
71 "django.template.context_processors.static",
72 "django.template.context_processors.tz",
73 "django.contrib.messages.context_processors.messages",
74 "django.template.context_processors.request",
82 PROJECT_ROOT + '/locale',
86 'accounts.apps.AccountsConfig',
87 'emails.apps.EmailsConfig',
88 'services.apps.ServicesConfig',
89 'ssh_keys.apps.SshKeysConfig',
94 'django.contrib.auth',
95 'django.contrib.contenttypes',
96 'django.contrib.messages',
97 'django.contrib.sessions',
98 'django.contrib.sites',
99 'django.contrib.admin',
100 'django.contrib.admindocs',
101 'django.contrib.staticfiles',
105 'django.contrib.sessions.middleware.SessionMiddleware',
106 'django.middleware.common.CommonMiddleware',
107 'django.middleware.csrf.CsrfViewMiddleware',
108 'django.contrib.auth.middleware.AuthenticationMiddleware',
109 'django.contrib.messages.middleware.MessageMiddleware',
110 'django.middleware.clickjacking.XFrameOptionsMiddleware',
113 # django-cas-provider settings
114 LOGIN_URL = '/cas/login/'
115 LOGOUT_URL = '/cas/logout/'
116 LOGIN_REDIRECT_URL = '/accounts/'
117 CAS_CUSTOM_ATTRIBUTES_CALLBACK = 'cas.utils.custom_attributes_callback'
118 SESSION_COOKIE_NAME = 'fnpcas'
120 GRAVATAR_DEFAULT_IMAGE = 'mm'
121 GRAVATAR_URL_PREFIX = 'https://www.gravatar.com/'
123 SITE_TITLE = 'Fundacja Nowoczesna Polska'
125 # Import localsettings file, which may override settings defined here
127 from .localsettings import *