1 # This file is part of Wolne Lektury, licensed under GNU Affero GPLv3 or later.
2 # Copyright © Fundacja Wolne Lektury. See NOTICE for more information.
5 from .paths import PROJECT_DIR
10 # ('Your Name', 'your_email@domain.com'),
15 CONTACT_EMAIL = 'fundacja@wolnelektury.pl'
17 CACHE_MIDDLEWARE_SECONDS = 3 * 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 # Local time zone for this installation. Choices can be found here:
32 # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
33 # although not all choices may be available on all operating systems.
34 # If running in a Windows environment this must be set to the same as your
36 TIME_ZONE = 'Europe/Warsaw'
42 'BACKEND': 'django.template.backends.django.DjangoTemplates',
45 'context_processors': (
46 'django.contrib.auth.context_processors.auth',
47 'django.contrib.messages.context_processors.messages',
48 'django.template.context_processors.debug',
49 'django.template.context_processors.i18n',
50 'django.template.context_processors.media',
51 'django.template.context_processors.request',
52 'wolnelektury.context_processors.extra_settings',
58 'debug_toolbar.middleware.DebugToolbarMiddleware',
59 'django.middleware.csrf.CsrfViewMiddleware',
60 'django.middleware.cache.UpdateCacheMiddleware',
61 'django.middleware.common.CommonMiddleware',
62 'django.contrib.sessions.middleware.SessionMiddleware',
63 'django.contrib.auth.middleware.AuthenticationMiddleware',
64 'django.contrib.admindocs.middleware.XViewMiddleware',
65 'fnp_django_pagination.middleware.PaginationMiddleware',
66 'django.middleware.locale.LocaleMiddleware',
67 'django.middleware.common.CommonMiddleware',
68 'django.contrib.messages.middleware.MessageMiddleware',
69 'fnpdjango.middleware.SetRemoteAddrFromXRealIP',
70 'django.middleware.cache.FetchFromCacheMiddleware',
71 'experiments.middleware.experiments_middleware',
74 ROOT_URLCONF = 'wolnelektury.urls'
76 FILE_UPLOAD_PERMISSIONS = 0o640