| 1 | # -*- coding: utf-8 -*- |
|---|
| 2 | # Django settings for sandbox project. |
|---|
| 3 | |
|---|
| 4 | import os |
|---|
| 5 | |
|---|
| 6 | DEBUG = True |
|---|
| 7 | TEMPLATE_DEBUG = DEBUG |
|---|
| 8 | |
|---|
| 9 | ADMINS = ( |
|---|
| 10 | ('Guillaume Pellerin', 'yomguy@parisson.com'), |
|---|
| 11 | ) |
|---|
| 12 | |
|---|
| 13 | MANAGERS = ADMINS |
|---|
| 14 | |
|---|
| 15 | DATABASES = { |
|---|
| 16 | 'default': { |
|---|
| 17 | 'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. |
|---|
| 18 | 'NAME': 'sandbox.sql', # Or path to database file if using sqlite3. |
|---|
| 19 | 'USER': '', # Not used with sqlite3. |
|---|
| 20 | 'PASSWORD': '', # Not used with sqlite3. |
|---|
| 21 | 'HOST': '', # Set to empty string for localhost. Not used with sqlite3. |
|---|
| 22 | 'PORT': '', # Set to empty string for default. Not used with sqlite3. |
|---|
| 23 | } |
|---|
| 24 | } |
|---|
| 25 | |
|---|
| 26 | # Local time zone for this installation. Choices can be found here: |
|---|
| 27 | # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name |
|---|
| 28 | # although not all choices may be available on all operating systems. |
|---|
| 29 | # On Unix systems, a value of None will cause Django to use the same |
|---|
| 30 | # timezone as the operating system. |
|---|
| 31 | # If running in a Windows environment this must be set to the same as your |
|---|
| 32 | # system time zone. |
|---|
| 33 | TIME_ZONE = 'Europe/Paris' |
|---|
| 34 | |
|---|
| 35 | # Language code for this installation. All choices can be found here: |
|---|
| 36 | # http://www.i18nguy.com/unicode/language-identifiers.html |
|---|
| 37 | #LANGUAGE_CODE = 'fr_FR' |
|---|
| 38 | LANGUAGES = [ ('fr', 'French'), |
|---|
| 39 | ('en', 'English'), |
|---|
| 40 | ] |
|---|
| 41 | |
|---|
| 42 | SITE_ID = 1 |
|---|
| 43 | |
|---|
| 44 | # If you set this to False, Django will make some optimizations so as not |
|---|
| 45 | # to load the internationalization machinery. |
|---|
| 46 | USE_I18N = True |
|---|
| 47 | |
|---|
| 48 | # If you set this to False, Django will not format dates, numbers and |
|---|
| 49 | # calendars according to the current locale |
|---|
| 50 | USE_L10N = True |
|---|
| 51 | |
|---|
| 52 | # Absolute path to the directory that holds media. |
|---|
| 53 | # Example: "/home/media/media.lawrence.com/" |
|---|
| 54 | MEDIA_ROOT = os.path.join(os.path.dirname(__file__), 'media/') |
|---|
| 55 | |
|---|
| 56 | if not os.path.exists(MEDIA_ROOT): |
|---|
| 57 | os.mkdir(MEDIA_ROOT) |
|---|
| 58 | |
|---|
| 59 | # URL that handles the media served from MEDIA_ROOT. Make sure to use a |
|---|
| 60 | # trailing slash if there is a path component (optional in other cases). |
|---|
| 61 | # Examples: "http://media.lawrence.com", "http://example.com/media/" |
|---|
| 62 | MEDIA_URL = '/media/' |
|---|
| 63 | |
|---|
| 64 | # Absolute path to the directory static files should be collected to. |
|---|
| 65 | # Don't put anything in this directory yourself; store your static files |
|---|
| 66 | # in apps' "static/" subdirectories and in STATICFILES_DIRS. |
|---|
| 67 | # Example: "/home/media/media.lawrence.com/static/" |
|---|
| 68 | STATIC_ROOT = '/home/dev/telemeta/static/' |
|---|
| 69 | |
|---|
| 70 | # URL prefix for static files. |
|---|
| 71 | # Example: "http://media.lawrence.com/static/" |
|---|
| 72 | STATIC_URL = '/static/' |
|---|
| 73 | |
|---|
| 74 | # Additional locations of static files |
|---|
| 75 | STATICFILES_DIRS = ( |
|---|
| 76 | # Put strings here, like "/home/html/static" or "C:/www/django/static". |
|---|
| 77 | # Always use forward slashes, even on Windows. |
|---|
| 78 | # Don't forget to use absolute paths, not relative paths. |
|---|
| 79 | ) |
|---|
| 80 | |
|---|
| 81 | # List of finder classes that know how to find static files in |
|---|
| 82 | # various locations. |
|---|
| 83 | STATICFILES_FINDERS = ( |
|---|
| 84 | 'django.contrib.staticfiles.finders.FileSystemFinder', |
|---|
| 85 | 'django.contrib.staticfiles.finders.AppDirectoriesFinder', |
|---|
| 86 | # 'django.contrib.staticfiles.finders.DefaultStorageFinder', |
|---|
| 87 | ) |
|---|
| 88 | # Make this unique, and don't share it with anybody. |
|---|
| 89 | SECRET_KEY = 'a8l7%06wr2k+3=%#*#@#rvop2mmzko)44%7k(zx%lls^ihm9^5' |
|---|
| 90 | |
|---|
| 91 | # List of callables that know how to import templates from various sources. |
|---|
| 92 | TEMPLATE_LOADERS = ( |
|---|
| 93 | 'django.template.loaders.filesystem.Loader', |
|---|
| 94 | 'django.template.loaders.app_directories.Loader', |
|---|
| 95 | # 'django.template.loaders.eggs.Loader', |
|---|
| 96 | ) |
|---|
| 97 | |
|---|
| 98 | |
|---|
| 99 | MIDDLEWARE_CLASSES = ( |
|---|
| 100 | 'django.middleware.common.CommonMiddleware', |
|---|
| 101 | 'django.contrib.sessions.middleware.SessionMiddleware', |
|---|
| 102 | 'django.middleware.csrf.CsrfViewMiddleware', |
|---|
| 103 | 'django.contrib.auth.middleware.AuthenticationMiddleware', |
|---|
| 104 | 'django.contrib.messages.middleware.MessageMiddleware', |
|---|
| 105 | 'django.middleware.locale.LocaleMiddleware', |
|---|
| 106 | ) |
|---|
| 107 | |
|---|
| 108 | ROOT_URLCONF = 'sandbox_sqlite.urls' |
|---|
| 109 | |
|---|
| 110 | TEMPLATE_DIRS = ( |
|---|
| 111 | # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". |
|---|
| 112 | # Always use forward slashes, even on Windows. |
|---|
| 113 | # Don't forget to use absolute paths, not relative paths. |
|---|
| 114 | '', |
|---|
| 115 | ) |
|---|
| 116 | |
|---|
| 117 | INSTALLED_APPS = ( |
|---|
| 118 | 'django.contrib.auth', |
|---|
| 119 | 'django.contrib.contenttypes', |
|---|
| 120 | 'django.contrib.sessions', |
|---|
| 121 | 'django.contrib.sites', |
|---|
| 122 | 'django.contrib.messages', |
|---|
| 123 | 'django.contrib.admin', |
|---|
| 124 | 'django.contrib.staticfiles', |
|---|
| 125 | 'django_extensions', |
|---|
| 126 | 'telemeta', |
|---|
| 127 | 'jsonrpc', |
|---|
| 128 | 'south', |
|---|
| 129 | 'sorl.thumbnail', |
|---|
| 130 | ) |
|---|
| 131 | |
|---|
| 132 | TEMPLATE_CONTEXT_PROCESSORS = ( |
|---|
| 133 | 'django.core.context_processors.request', |
|---|
| 134 | 'django.contrib.auth.context_processors.auth', |
|---|
| 135 | "django.core.context_processors.i18n", |
|---|
| 136 | "django.core.context_processors.media", |
|---|
| 137 | 'django.core.context_processors.static', |
|---|
| 138 | ) |
|---|
| 139 | |
|---|
| 140 | TELEMETA_ORGANIZATION = 'Parisson' |
|---|
| 141 | TELEMETA_SUBJECTS = ('test', 'telemeta', 'sandbox') |
|---|
| 142 | TELEMETA_DESCRIPTION = "Telemeta TEST sandbox" |
|---|
| 143 | TELEMETA_GMAP_KEY = 'ABQIAAAArg7eSfnfTkBRma8glnGrlxRVbMrhnNNvToCbZQtWdaMbZTA_3RRGObu5PDoiBImgalVnnLU2yN4RMA' |
|---|
| 144 | TELEMETA_CACHE_DIR = MEDIA_ROOT + 'cache' |
|---|
| 145 | TELEMETA_EXPORT_CACHE_DIR = MEDIA_ROOT + 'export' |
|---|
| 146 | TELEMETA_DATA_CACHE_DIR = TELEMETA_CACHE_DIR + "/data" |
|---|
| 147 | |
|---|
| 148 | TELEMETA_DOWNLOAD_ENABLED = True |
|---|
| 149 | TELEMETA_STREAMING_FORMATS = ('mp3', 'webm') |
|---|
| 150 | TELEMETA_DOWNLOAD_FORMATS = ('wav', 'mp3', 'webm') |
|---|
| 151 | TELEMETA_PUBLIC_ACCESS_PERIOD = 51 |
|---|
| 152 | TELEMETA_DEFAULT_WAVEFORM_SIZES = ['360x130', '640x130'] |
|---|
| 153 | |
|---|
| 154 | AUTH_PROFILE_MODULE = 'telemeta.userprofile' |
|---|
| 155 | SESSION_EXPIRE_AT_BROWSER_CLOSE = False |
|---|
| 156 | |
|---|
| 157 | EMAIL_HOST = 'localhost' |
|---|
| 158 | DEFAULT_FROM_EMAIL = 'webmaster@parisson.com' |
|---|
| 159 | |
|---|