root/settings.py.dist

Revision 4d83ed65f6398ae4c95cb509ba5fb6e93a48daa3, 3.4 kB (checked in by Marcelo Jorge Vieira (metal) <metal@…>, 10 months ago)

Fixed path to table.csv file

  • Property mode set to 100644
Line 
1# -*- coding: utf-8 -*-
2"""Django settings for ema project.
3"""
4import os
5from django.utils.translation import ugettext as _
6INSTANCE = lambda *x:os.path.join(os.path.dirname(__file__), *x)
7DEBUG = True
8TEMPLATE_DEBUG = DEBUG
9
10ADMINS = (
11    ('Lincoln de Sousa', 'lincoln@minaslivre.org'),
12)
13
14MANAGERS = ADMINS
15
16# Set default email address that send system messages
17DEFAULT_FROM_EMAIL = 'system@yourdomain.com'
18
19# 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
20DATABASE_ENGINE = 'sqlite3'
21
22# Or path to database file if using sqlite3.
23DATABASE_NAME = INSTANCE('db')
24
25# Not used with sqlite3.
26DATABASE_USER = ''
27
28# Not used with sqlite3.
29DATABASE_PASSWORD = ''
30
31# Set to empty string for localhost. Not used with sqlite3.
32DATABASE_HOST = ''
33
34# Set to empty string for default. Not used with sqlite3.
35DATABASE_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.
42TIME_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
46LANGUAGE_CODE = 'pt-br'
47
48LANGUAGES = (
49    ('pt-br', u'Português'),
50    ('en', u'English'),
51    ('es', u'Español'),
52)
53
54SITE_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.
58BASE_CONTEXT = ''
59
60# If you set this to False, Django will make some optimizations so as
61# not to load the internationalization machinery.
62USE_I18N = True
63
64# Absolute path to the directory that holds media.  Example:
65# "/home/media/media.lawrence.com/"
66MEDIA_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/"
72MEDIA_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/".
77ADMIN_MEDIA_PREFIX = '/media/'
78
79# Make this unique, and don't share it with anybody.
80SECRET_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.
84TEMPLATE_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
90MIDDLEWARE_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
98ROOT_URLCONF = 'ema.urls'
99
100TEMPLATE_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
108INSTALLED_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
119TABLE_CSV = INSTANCE('media/table.csv')
Note: See TracBrowser for help on using the browser.