+AUTHENTICATION_BACKENDS = [
+ 'django.contrib.auth.backends.ModelBackend',
+ 'allauth.account.auth_backends.AuthenticationBackend',
+]
+EMAIL_CONFIRMATION_DAYS = 2
+LOGIN_URL = '/uzytkownik/login/'
+
+LOGIN_REDIRECT_URL = '/'
+
+INSTALLED_APPS = [
+ # external
+ 'django.contrib.auth',
+ 'django.contrib.contenttypes',
+ 'django.contrib.sessions',
+ 'django.contrib.sites',
+ 'django.contrib.admin',
+ 'django.contrib.admindocs',
+ 'pagination',
+ 'piston',
+ 'piwik.django',
+ #'rosetta',
+ 'south',
+ 'sorl.thumbnail',
+ 'djcelery',
+ 'djkombu',
+ # 'django_nose',
+
+ #allauth stuff
+ 'emailconfirmation',
+ 'uni_form',
+ 'allauth',
+ 'allauth.account',
+ 'allauth.socialaccount',
+ 'allauth.openid',
+ #'allauth.facebook',
+ #'allauth.twitter',
+
+ # included
+ 'compress',
+ 'modeltranslation',
+
+ # our
+ 'ajaxable',
+ 'api',
+ 'catalogue',
+ 'chunks',
+ 'dictionary',
+ 'infopages',
+ 'lesmianator',
+ 'lessons',
+ 'newtagging',
+ 'opds',
+ 'pdcounter',
+ 'reporting',
+ 'sponsors',
+ 'stats',
+ 'suggest',
+ 'picture',
+ 'search',
+ 'social',
+]
+
+CACHES = {
+ 'default': {
+ 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
+ 'LOCATION': [
+ '127.0.0.1:11211',
+ ]
+ },
+ 'permanent': {
+ 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
+ 'TIMEOUT': 2419200,
+ 'LOCATION': [
+ '127.0.0.1:11211',
+ ]
+ },
+ 'api': {
+ 'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache',
+ 'LOCATION': path.join(PROJECT_DIR, 'django_cache/'),
+ 'KEY_PREFIX': 'api',
+ 'TIMEOUT': 86400,
+ },
+}
+CACHE_MIDDLEWARE_ANONYMOUS_ONLY=True
+
+# CSS and JavaScript file groups