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 DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'
25 # Local time zone for this installation. Choices can be found here:
26 # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
27 # although not all choices may be available on all operating systems.
28 # If running in a Windows environment this must be set to the same as your
32 # Language code for this installation. All choices can be found here:
33 # http://www.i18nguy.com/unicode/language-identifiers.html
38 # If you set this to False, Django will make some optimizations so as not
39 # to load the internationalization machinery.
44 # Absolute path to the directory that holds media.
45 # Example: "/home/media/media.lawrence.com/"
46 MEDIA_ROOT = path.join(PROJECT_ROOT, '../../media/')
48 # URL that handles the media served from MEDIA_ROOT. Make sure to use a
49 # trailing slash if there is a path component (optional in other cases).
50 # Examples: "http://media.lawrence.com", "http://example.com/media/"
53 STATIC_ROOT = path.join(PROJECT_ROOT, '../../static/')
54 STATIC_URL = '/static/'
57 path.join(PROJECT_ROOT, 'static'),
60 ROOT_URLCONF = 'cas.urls'
64 'BACKEND': 'django.template.backends.django.DjangoTemplates',
67 PROJECT_ROOT + '/templates',
70 'context_processors': [
71 "django.contrib.auth.context_processors.auth",
72 "django.template.context_processors.debug",
73 "django.template.context_processors.i18n",
74 "django.template.context_processors.media",
75 "django.template.context_processors.static",
76 "django.template.context_processors.tz",
77 "django.contrib.messages.context_processors.messages",
78 "django.template.context_processors.request",
86 PROJECT_ROOT + '/locale',
90 'accounts.apps.AccountsConfig',
91 'emails.apps.EmailsConfig',
92 'services.apps.ServicesConfig',
93 'ssh_keys.apps.SshKeysConfig',
99 'django.contrib.auth',
100 'django.contrib.contenttypes',
101 'django.contrib.messages',
102 'django.contrib.sessions',
103 'django.contrib.sites',
104 'django.contrib.admin',
105 'django.contrib.admindocs',
106 'django.contrib.staticfiles',
110 'django.contrib.sessions.middleware.SessionMiddleware',
111 'django.middleware.common.CommonMiddleware',
112 'django.middleware.csrf.CsrfViewMiddleware',
113 'django.contrib.auth.middleware.AuthenticationMiddleware',
114 'django.contrib.messages.middleware.MessageMiddleware',
115 'django.middleware.clickjacking.XFrameOptionsMiddleware',
118 # django-cas-provider settings
119 LOGIN_URL = '/cas/login/'
120 LOGOUT_URL = '/cas/logout/'
121 LOGIN_REDIRECT_URL = '/accounts/'
122 CAS_CUSTOM_ATTRIBUTES_CALLBACK = 'cas.utils.custom_attributes_callback'
123 SESSION_COOKIE_NAME = 'fnpcas'
125 GRAVATAR_DEFAULT_IMAGE = 'mm'
126 GRAVATAR_URL_PREFIX = 'https://www.gravatar.com/'
128 SITE_TITLE = 'Fundacja Nowoczesna Polska'
131 OIDC_USERINFO = 'emails.oidc.userinfo'
134 # Import localsettings file, which may override settings defined here
136 from .localsettings import *