1 # This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
2 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
5 from machina import MACHINA_MAIN_TEMPLATE_DIR
6 from .paths import PROJECT_DIR
11 # ('Your Name', 'your_email@domain.com'),
16 CONTACT_EMAIL = 'fundacja@nowoczesnapolska.org.pl'
20 'ENGINE': 'django.db.backends.sqlite3', # 'postgresql_psycopg2'
21 'NAME': path.join(PROJECT_DIR, 'dev.db'),
22 'USER': '', # Not used with sqlite3.
23 'PASSWORD': '', # Not used with sqlite3.
24 'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
28 DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'
30 SOLR_TEST = "http://localhost:8983/solr/wl_test/"
31 SOLR_STOPWORDS = "/path/to/solr/data/conf/lang/stopwords_pl.txt"
33 # Local time zone for this installation. Choices can be found here:
34 # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
35 # although not all choices may be available on all operating systems.
36 # If running in a Windows environment this must be set to the same as your
38 TIME_ZONE = 'Europe/Warsaw'
44 'BACKEND': 'django.template.backends.django.DjangoTemplates',
47 path.join(PROJECT_DIR, 'templates'), # Duplicate, because of Machina<1 weird configuration.
48 MACHINA_MAIN_TEMPLATE_DIR,
51 'context_processors': (
52 'django.contrib.auth.context_processors.auth',
53 'django.contrib.messages.context_processors.messages',
54 'django.template.context_processors.debug',
55 'django.template.context_processors.i18n',
56 'django.template.context_processors.media',
57 'django.template.context_processors.request',
58 'wolnelektury.context_processors.extra_settings',
59 'search.context_processors.search_form',
60 'machina.core.context_processors.metadata',
66 'debug_toolbar.middleware.DebugToolbarMiddleware',
67 'django.middleware.csrf.CsrfViewMiddleware',
68 'django.middleware.cache.UpdateCacheMiddleware',
69 'django.middleware.common.CommonMiddleware',
70 'django.contrib.sessions.middleware.SessionMiddleware',
71 'django.contrib.auth.middleware.AuthenticationMiddleware',
72 'django.contrib.admindocs.middleware.XViewMiddleware',
73 'fnp_django_pagination.middleware.PaginationMiddleware',
74 'django.middleware.locale.LocaleMiddleware',
75 'django.middleware.common.CommonMiddleware',
76 'django.contrib.messages.middleware.MessageMiddleware',
77 'fnpdjango.middleware.SetRemoteAddrFromXRealIP',
78 'django.middleware.cache.FetchFromCacheMiddleware',
79 'machina.apps.forum_permission.middleware.ForumPermissionMiddleware',
80 'experiments.middleware.experiments_middleware',
83 ROOT_URLCONF = 'wolnelektury.urls'
85 FILE_UPLOAD_PERMISSIONS = 0o640