| 1 | # -*- coding: utf-8 -*- |
|---|
| 2 | """Django settings for ema project. |
|---|
| 3 | """ |
|---|
| 4 | import os |
|---|
| 5 | from django.utils.translation import ugettext as _ |
|---|
| 6 | INSTANCE = lambda *x:os.path.join(os.path.dirname(__file__), *x) |
|---|
| 7 | DEBUG = True |
|---|
| 8 | TEMPLATE_DEBUG = DEBUG |
|---|
| 9 | |
|---|
| 10 | ADMINS = ( |
|---|
| 11 | ('Lincoln de Sousa', 'lincoln@minaslivre.org'), |
|---|
| 12 | ) |
|---|
| 13 | |
|---|
| 14 | MANAGERS = ADMINS |
|---|
| 15 | |
|---|
| 16 | # Set default email address that send system messages |
|---|
| 17 | DEFAULT_FROM_EMAIL = 'system@yourdomain.com' |
|---|
| 18 | |
|---|
| 19 | # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. |
|---|
| 20 | DATABASE_ENGINE = 'sqlite3' |
|---|
| 21 | |
|---|
| 22 | # Or path to database file if using sqlite3. |
|---|
| 23 | DATABASE_NAME = INSTANCE('db') |
|---|
| 24 | |
|---|
| 25 | # Not used with sqlite3. |
|---|
| 26 | DATABASE_USER = '' |
|---|
| 27 | |
|---|
| 28 | # Not used with sqlite3. |
|---|
| 29 | DATABASE_PASSWORD = '' |
|---|
| 30 | |
|---|
| 31 | # Set to empty string for localhost. Not used with sqlite3. |
|---|
| 32 | DATABASE_HOST = '' |
|---|
| 33 | |
|---|
| 34 | # Set to empty string for default. Not used with sqlite3. |
|---|
| 35 | DATABASE_PORT = '' |
|---|
| 36 | |
|---|
| 37 | # Local time zone for this installation. Choices can be found here: |
|---|
| 38 | # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name although not |
|---|
| 39 | # all choices may be available on all operating systems. If running |
|---|
| 40 | # in a Windows environment this must be set to the same as your system |
|---|
| 41 | # time zone. |
|---|
| 42 | TIME_ZONE = 'America/Sao_Paulo' |
|---|
| 43 | |
|---|
| 44 | # Language code for this installation. All choices can be found here: |
|---|
| 45 | # http://www.i18nguy.com/unicode/language-identifiers.html |
|---|
| 46 | LANGUAGE_CODE = 'pt-br' |
|---|
| 47 | |
|---|
| 48 | LANGUAGES = ( |
|---|
| 49 | ('pt-br', u'Português'), |
|---|
| 50 | ('en', u'English'), |
|---|
| 51 | ('es', u'Español'), |
|---|
| 52 | ) |
|---|
| 53 | |
|---|
| 54 | SITE_ID = 1 |
|---|
| 55 | |
|---|
| 56 | # Configure a dotted name that points out to a function that creates a |
|---|
| 57 | # context to be used by all (supported) applications in the project. |
|---|
| 58 | BASE_CONTEXT = '' |
|---|
| 59 | |
|---|
| 60 | # If you set this to False, Django will make some optimizations so as |
|---|
| 61 | # not to load the internationalization machinery. |
|---|
| 62 | USE_I18N = True |
|---|
| 63 | |
|---|
| 64 | # Absolute path to the directory that holds media. Example: |
|---|
| 65 | # "/home/media/media.lawrence.com/" |
|---|
| 66 | MEDIA_ROOT = '' |
|---|
| 67 | |
|---|
| 68 | # URL that handles the media served from MEDIA_ROOT. Make sure to use |
|---|
| 69 | # a trailing slash if there is a path component (optional in other |
|---|
| 70 | # cases). Examples: "http://media.lawrence.com", |
|---|
| 71 | # "http://example.com/media/" |
|---|
| 72 | MEDIA_URL = '' |
|---|
| 73 | |
|---|
| 74 | # URL prefix for admin media -- CSS, JavaScript and images. Make sure |
|---|
| 75 | # to use a trailing slash. Examples: "http://foo.com/media/", |
|---|
| 76 | # "/media/". |
|---|
| 77 | ADMIN_MEDIA_PREFIX = '/media/' |
|---|
| 78 | |
|---|
| 79 | # Make this unique, and don't share it with anybody. |
|---|
| 80 | SECRET_KEY = '8cs3vv%-k&(=n)4g%baxted6d86-_ibeyhli2u8&3%0k($2zn-' |
|---|
| 81 | |
|---|
| 82 | # List of callables that know how to import templates from various |
|---|
| 83 | # sources. |
|---|
| 84 | TEMPLATE_LOADERS = ( |
|---|
| 85 | 'django.template.loaders.filesystem.load_template_source', |
|---|
| 86 | 'django.template.loaders.app_directories.load_template_source', |
|---|
| 87 | # 'django.template.loaders.eggs.load_template_source', |
|---|
| 88 | ) |
|---|
| 89 | |
|---|
| 90 | MIDDLEWARE_CLASSES = ( |
|---|
| 91 | 'django.middleware.common.CommonMiddleware', |
|---|
| 92 | 'django.contrib.sessions.middleware.SessionMiddleware', |
|---|
| 93 | 'django.contrib.auth.middleware.AuthenticationMiddleware', |
|---|
| 94 | 'django.middleware.doc.XViewMiddleware', |
|---|
| 95 | 'django.middleware.locale.LocaleMiddleware', |
|---|
| 96 | ) |
|---|
| 97 | |
|---|
| 98 | ROOT_URLCONF = 'ema.urls' |
|---|
| 99 | |
|---|
| 100 | TEMPLATE_DIRS = ( |
|---|
| 101 | # Put strings here, like "/home/html/django_templates" or |
|---|
| 102 | # "C:/www/django/templates". Always use forward slashes, even on |
|---|
| 103 | # Windows. Don't forget to use absolute paths, not relative |
|---|
| 104 | # paths. |
|---|
| 105 | INSTANCE('templates'), |
|---|
| 106 | ) |
|---|
| 107 | |
|---|
| 108 | INSTALLED_APPS = ( |
|---|
| 109 | 'django.contrib.auth', |
|---|
| 110 | 'django.contrib.contenttypes', |
|---|
| 111 | 'django.contrib.sessions', |
|---|
| 112 | 'django.contrib.sites', |
|---|
| 113 | 'django.contrib.admin', |
|---|
| 114 | 'diario', |
|---|
| 115 | 'ema.events', |
|---|
| 116 | 'ema.contents', |
|---|
| 117 | ) |
|---|
| 118 | |
|---|
| 119 | TABLE_CSV = INSTANCE('media/table.csv') |
|---|