medor.www
clone your own copy | download snapshot

Snapshots | iceberg

Inside this repository

local_settings.example.py
text/x-python

Download raw (1.7 KB)

# Local settings for medor project.

LOCAL_SETTINGS = True
from settings import *

# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/1.7/howto/deployment/checklist/

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True

TEMPLATE_DEBUG = True

ALLOWED_HOSTS = []


# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/1.7/howto/static-files/

STATIC_URL = '/static/'

# Absolute path to the directory static files should be collected to.
# Don't put anything in this directory yourself; store your static files
# in apps' "static/" subdirectories and in STATICFILES_DIRS.
# Example: "/home/media/media.lawrence.com/static/"
STATIC_ROOT = ''



# Database
# https://docs.djangoproject.com/en/1.7/ref/settings/#databases

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.sqlite3',
        'NAME': os.path.join(BASE_DIR, 'medor.db'),
    }
}

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = ''

META_SITE_PROTOCOL = 'http'


# Caching. Here with python-memcached.
CACHES = {
    'default': {
        'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
        'LOCATION': '127.0.0.1:11211',
    }
}
# Django CMS cache duration. 5 minutes here.
CMS_CACHE_DURATIONS = 60 * 5
MIDDLEWARE = ['django.middleware.cache.UpdateCacheMiddleware'] + MIDDLEWARE + ['django.middleware.cache.FetchFromCacheMiddleware']


# Calendar infos to display the events on the home page
CALDAV_URL = "https://user:pass@medor.coop/nuage/remote.php/caldav/"
CALDAV_CAL_ID = "cal_id"



if DEBUG:
    # Show emails in the console during developement.
    EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'