X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/73ce961f14509aabfa26536f847afd28111029c6..bcd038fcea6b45b29ff3831b31f758dcec6b4157:/wolnelektury/settings.py diff --git a/wolnelektury/settings.py b/wolnelektury/settings.py index a69b0508e..01f5737db 100644 --- a/wolnelektury/settings.py +++ b/wolnelektury/settings.py @@ -21,10 +21,10 @@ DATABASES = { 'USER': '', # Not used with sqlite3. 'PASSWORD': '', # Not used with sqlite3. 'HOST': '', # Set to empty string for localhost. Not used with sqlite3. - 'PORT': '', # Set to empty string for default. Not used with sqlite3. } } + # Local time zone for this installation. Choices can be found here: # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name # although not all choices may be available on all operating systems. @@ -156,6 +156,7 @@ INSTALLED_APPS = [ 'suggest', 'picture', 'search', + 'social', ] CACHES = { @@ -165,6 +166,13 @@ CACHES = { '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/'), @@ -304,7 +312,7 @@ BROKER_USER = "guest" BROKER_PASSWORD = "guest" BROKER_VHOST = "/" - +CELERY_EAGER_PROPAGATES_EXCEPTIONS = True # Load localsettings, if they exist try: