source: example/sandbox_sqlite/settings.py @ 1be868b

social
Last change on this file since 1be868b was 1be868b, checked in by yomguy <yomguy@…>, 3 years ago

Merge branch 'master' into social

Conflicts:

example/sandbox_sqlite/settings.py

  • Property mode set to 100644
File size: 4.8 KB
Line 
1# -*- coding: utf-8 -*-
2# Django settings for sandbox project.
3
4import os
5
6DEBUG = True
7TEMPLATE_DEBUG = DEBUG
8
9ADMINS = (
10    ('Guillaume Pellerin', 'yomguy@parisson.com'),
11)
12
13MANAGERS = ADMINS
14
15DATABASES = {
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.
33TIME_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'
38LANGUAGES = [ ('fr', 'French'),
39              ('en', 'English'),
40]
41
42SITE_ID = 1
43
44# If you set this to False, Django will make some optimizations so as not
45# to load the internationalization machinery.
46USE_I18N = True
47
48# If you set this to False, Django will not format dates, numbers and
49# calendars according to the current locale
50USE_L10N = True
51
52# Absolute path to the directory that holds media.
53# Example: "/home/media/media.lawrence.com/"
54MEDIA_ROOT = os.path.join(os.path.dirname(__file__), 'media/')
55
56if 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/"
62MEDIA_URL = '/media/'
63
64# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
65# trailing slash.
66# Examples: "http://foo.com/media/", "/media/".
67ADMIN_MEDIA_PREFIX = 'http://localhost/django/media/'
68
69# Make this unique, and don't share it with anybody.
70SECRET_KEY = 'a8l7%06wr2k+3=%#*#@#rvop2mmzko)44%7k(zx%lls^ihm9^5'
71
72# List of callables that know how to import templates from various sources.
73TEMPLATE_LOADERS = (
74    'django.template.loaders.filesystem.Loader',
75    'django.template.loaders.app_directories.Loader',
76#     'django.template.loaders.eggs.Loader',
77)
78
79
80MIDDLEWARE_CLASSES = (
81    'django.middleware.common.CommonMiddleware',
82    'django.contrib.sessions.middleware.SessionMiddleware',
83    'django.middleware.csrf.CsrfViewMiddleware',
84    'django.contrib.auth.middleware.AuthenticationMiddleware',
85    'django.contrib.messages.middleware.MessageMiddleware',
86    'django.middleware.locale.LocaleMiddleware',
87    'pagination.middleware.PaginationMiddleware',
88    'django.contrib.auth.backends.ModelBackend',
89    'socialregistration.contrib.facebook.auth.FacebookAuth',
90)
91
92ROOT_URLCONF = 'sandbox_sqlite.urls'
93
94TEMPLATE_DIRS = (
95    # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
96    # Always use forward slashes, even on Windows.
97    # Don't forget to use absolute paths, not relative paths.
98    '',
99)
100
101INSTALLED_APPS = (
102    'django.contrib.auth',
103    'django.contrib.contenttypes',
104    'django.contrib.sessions',
105    'django.contrib.sites',
106    'django.contrib.messages',
107    'django.contrib.admin',
108    'telemeta',
109    'jsonrpc',
110    'south',
111    'postman',
112    'pagination',
113    'socialregistration',
114    'socialregistration.contrib.facebook',
115    'sorl.thumbnail',
116)
117
118TEMPLATE_CONTEXT_PROCESSORS = (
119    'django.core.context_processors.request',
120    'django.contrib.auth.context_processors.auth',
121)
122
123TELEMETA_ORGANIZATION = 'Parisson'
124TELEMETA_SUBJECTS = ('test', 'telemeta', 'sandbox')
125TELEMETA_DESCRIPTION = "Telemeta TEST sandbox"
126TELEMETA_GMAP_KEY = 'ABQIAAAArg7eSfnfTkBRma8glnGrlxRVbMrhnNNvToCbZQtWdaMbZTA_3RRGObu5PDoiBImgalVnnLU2yN4RMA'
127TELEMETA_CACHE_DIR = MEDIA_ROOT + 'cache'
128TELEMETA_EXPORT_CACHE_DIR = MEDIA_ROOT + 'export'
129TELEMETA_DATA_CACHE_DIR = TELEMETA_CACHE_DIR + "/data"
130
131TELEMETA_DOWNLOAD_ENABLED = True
132TELEMETA_STREAMING_FORMATS = ('mp3', 'webm')
133TELEMETA_DOWNLOAD_FORMATS = ('wav', 'mp3', 'webm')
134TELEMETA_PUBLIC_ACCESS_PERIOD = 51
135AUTH_PROFILE_MODULE = 'telemeta.userprofile'
136SESSION_EXPIRE_AT_BROWSER_CLOSE = False
137
138EMAIL_HOST = 'localhost'
139DEFAULT_FROM_EMAIL = 'webmaster@parisson.com'
140
141POSTMAN_AUTO_MODERATE_AS=True
142
143FACEBOOK_APP_ID = '348560078520326'
144FACEBOOK_SECRET_KEY = 'f6204a5468be878bfce8f0007455c022'
145FACEBOOK_REQUEST_PERMISSIONS = ''
Note: See TracBrowser for help on using the repository browser.