| 1 | # Django settings for modoboa project. |
|---|
| 2 | import os.path |
|---|
| 3 | |
|---|
| 4 | DEBUG = False |
|---|
| 5 | TEMPLATE_DEBUG = DEBUG |
|---|
| 6 | |
|---|
| 7 | ADMINS = ( |
|---|
| 8 | # ('Your Name', 'your_email@domain.com'), |
|---|
| 9 | ) |
|---|
| 10 | |
|---|
| 11 | MANAGERS = ADMINS |
|---|
| 12 | |
|---|
| 13 | DATABASE_ENGINE = '' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. |
|---|
| 14 | DATABASE_NAME = 'modoboa' # Or path to database file if using sqlite3. |
|---|
| 15 | DATABASE_USER = '' # Not used with sqlite3. |
|---|
| 16 | DATABASE_PASSWORD = '' # Not used with sqlite3. |
|---|
| 17 | DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3. |
|---|
| 18 | DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3. |
|---|
| 19 | |
|---|
| 20 | # Local time zone for this installation. Choices can be found here: |
|---|
| 21 | # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name |
|---|
| 22 | # although not all choices may be available on all operating systems. |
|---|
| 23 | # If running in a Windows environment this must be set to the same as your |
|---|
| 24 | # system time zone. |
|---|
| 25 | TIME_ZONE = 'America/Chicago' |
|---|
| 26 | |
|---|
| 27 | # Language code for this installation. All choices can be found here: |
|---|
| 28 | # http://www.i18nguy.com/unicode/language-identifiers.html |
|---|
| 29 | LANGUAGE_CODE = 'en-us' |
|---|
| 30 | |
|---|
| 31 | SITE_ID = 1 |
|---|
| 32 | |
|---|
| 33 | # If you set this to False, Django will make some optimizations so as not |
|---|
| 34 | # to load the internationalization machinery. |
|---|
| 35 | USE_I18N = True |
|---|
| 36 | |
|---|
| 37 | LOGIN_REDIRECT_URL = '/modoboa/admin/' |
|---|
| 38 | |
|---|
| 39 | # Absolute path to the directory that holds media. |
|---|
| 40 | # Example: "/home/media/media.lawrence.com/" |
|---|
| 41 | MEDIA_ROOT = '' |
|---|
| 42 | |
|---|
| 43 | # URL that handles the media served from MEDIA_ROOT. Make sure to use a |
|---|
| 44 | # trailing slash if there is a path component (optional in other cases). |
|---|
| 45 | # Examples: "http://media.lawrence.com", "http://example.com/media/" |
|---|
| 46 | MEDIA_URL = '' |
|---|
| 47 | |
|---|
| 48 | # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a |
|---|
| 49 | # trailing slash. |
|---|
| 50 | # Examples: "http://foo.com/media/", "/media/". |
|---|
| 51 | ADMIN_MEDIA_PREFIX = '/media/' |
|---|
| 52 | |
|---|
| 53 | # Make this unique, and don't share it with anybody. |
|---|
| 54 | SECRET_KEY = '2)e+la#y$1b&v!p)s^&4lwpc92o59fye)mj^3^7$jytmvx379d' |
|---|
| 55 | |
|---|
| 56 | # List of callables that know how to import templates from various sources. |
|---|
| 57 | TEMPLATE_LOADERS = ( |
|---|
| 58 | 'django.template.loaders.filesystem.load_template_source', |
|---|
| 59 | 'django.template.loaders.app_directories.load_template_source', |
|---|
| 60 | # 'django.template.loaders.eggs.load_template_source', |
|---|
| 61 | ) |
|---|
| 62 | |
|---|
| 63 | MIDDLEWARE_CLASSES = ( |
|---|
| 64 | 'django.middleware.common.CommonMiddleware', |
|---|
| 65 | 'django.contrib.sessions.middleware.SessionMiddleware', |
|---|
| 66 | 'django.contrib.auth.middleware.AuthenticationMiddleware', |
|---|
| 67 | 'django.contrib.messages.middleware.MessageMiddleware', |
|---|
| 68 | ) |
|---|
| 69 | |
|---|
| 70 | ROOT_URLCONF = 'modoboa.urls' |
|---|
| 71 | |
|---|
| 72 | MODOBOA_DIR = os.path.dirname(__file__) |
|---|
| 73 | STATIC_ROOTDIR = os.path.join(MODOBOA_DIR, 'static') |
|---|
| 74 | TEMPLATE_DIRS = ( |
|---|
| 75 | # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". |
|---|
| 76 | # Always use forward slashes, even on Windows. |
|---|
| 77 | # Don't forget to use absolute paths, not relative paths. |
|---|
| 78 | os.path.join(os.path.dirname(__file__), 'templates'), |
|---|
| 79 | ) |
|---|
| 80 | |
|---|
| 81 | TEMPLATE_CONTEXT_PROCESSORS = ( |
|---|
| 82 | 'django.contrib.messages.context_processors.messages', |
|---|
| 83 | ) |
|---|
| 84 | |
|---|
| 85 | INSTALLED_APPS = ( |
|---|
| 86 | 'django.contrib.auth', |
|---|
| 87 | 'django.contrib.contenttypes', |
|---|
| 88 | 'django.contrib.sessions', |
|---|
| 89 | 'django.contrib.sites', |
|---|
| 90 | 'django.contrib.messages', |
|---|
| 91 | 'south', |
|---|
| 92 | 'modoboa', |
|---|
| 93 | 'modoboa.lib', |
|---|
| 94 | 'modoboa.admin', |
|---|
| 95 | 'modoboa.userprefs', |
|---|
| 96 | |
|---|
| 97 | # Modoboa extensions here. |
|---|
| 98 | # 'modoboa.extensions.postfix_autoreply' |
|---|
| 99 | ) |
|---|
| 100 | |
|---|
| 101 | AUTHENTICATION_BACKENDS = ( |
|---|
| 102 | 'django.contrib.auth.backends.ModelBackend', |
|---|
| 103 | 'modoboa.lib.authbackends.SimpleBackend' |
|---|
| 104 | ) |
|---|
| 105 | |
|---|
| 106 | # Amavis quarantine |
|---|
| 107 | # DB_CONNECTIONS = ( |
|---|
| 108 | # {"amavis_quarantine" : {"driver" : "", |
|---|
| 109 | # "host" : "", |
|---|
| 110 | # "dbname" : "", |
|---|
| 111 | # "login" : "", |
|---|
| 112 | # "password" : ""} |
|---|
| 113 | # } |
|---|
| 114 | # ) |
|---|
| 115 | |
|---|
| 116 | |
|---|
| 117 | #SESSION_COOKIE_AGE = 300 |
|---|
| 118 | #CACHE_BACKEND = 'file://' |
|---|