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 .paths import PROJECT_DIR
10 # ('Your Name', 'your_email@domain.com'),
15 CONTACT_EMAIL = 'fundacja@nowoczesnapolska.org.pl'
17 CACHE_MIDDLEWARE_SECONDS = 24 * 60 * 60
21 'ENGINE': 'django.db.backends.sqlite3', # 'postgresql_psycopg2'
22 'NAME': path.join(PROJECT_DIR, 'dev.db'),
23 'USER': '', # Not used with sqlite3.
24 'PASSWORD': '', # Not used with sqlite3.
25 'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
29 DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'
31 SOLR_TEST = "http://localhost:8983/solr/wl_test/"
32 SOLR_STOPWORDS = "/path/to/solr/data/conf/lang/stopwords_pl.txt"
34 # Local time zone for this installation. Choices can be found here:
35 # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
36 # although not all choices may be available on all operating systems.
37 # If running in a Windows environment this must be set to the same as your
39 TIME_ZONE = 'Europe/Warsaw'
45 'BACKEND': 'django.template.backends.django.DjangoTemplates',
47 'context_processors': (
48 'django.contrib.auth.context_processors.auth',
49 'django.contrib.messages.context_processors.messages',
50 'django.template.context_processors.debug',
51 'django.template.context_processors.i18n',
52 'django.template.context_processors.media',
53 'django.template.context_processors.request',
54 'wolnelektury.context_processors.extra_settings',
55 'search.context_processors.search_form',
58 'django.template.loaders.filesystem.Loader',
59 'django.template.loaders.app_directories.Loader',
64 TEMPLATES['loaders'] = [
65 ('django.template.loaders.cached.Loader', TEMPLATES['loaders'])
69 'debug_toolbar.middleware.DebugToolbarMiddleware',
70 'django.middleware.csrf.CsrfViewMiddleware',
71 'django.middleware.cache.UpdateCacheMiddleware',
72 'django.middleware.common.CommonMiddleware',
73 'django.contrib.sessions.middleware.SessionMiddleware',
74 'django.contrib.auth.middleware.AuthenticationMiddleware',
75 'django.contrib.admindocs.middleware.XViewMiddleware',
76 'fnp_django_pagination.middleware.PaginationMiddleware',
77 'django.middleware.locale.LocaleMiddleware',
78 'django.middleware.common.CommonMiddleware',
79 'django.contrib.messages.middleware.MessageMiddleware',
80 'fnpdjango.middleware.SetRemoteAddrFromXRealIP',
81 'django.middleware.cache.FetchFromCacheMiddleware',
82 'experiments.middleware.experiments_middleware',
85 ROOT_URLCONF = 'wolnelektury.urls'
87 FILE_UPLOAD_PERMISSIONS = 0o640