source: publico/SIGI/trunk/sigi/settings.py @ 5358

Última Alteração nesse arquivo desde 5358 foi 5358, incluída por felipevieira, 9 anos atrás

modificacoes feitas em producao, wrong!

  • Propriedade svn:eol-style mudada para native
  • Propriedade svn:keywords mudada para Date Revision Author HeadURL Id
File size: 3.3 KB
Linha 
1#
2# Default Django settings for SIGI.
3#
4#   (!!!)
5#
6#   DON'T CHANGE THIS FILE, USE local_settings.py. YOU GET A TEMPLATE IN
7#   local_settings.template (COPY HIM TO local_settings.py AND MAKE YOUR
8#   NECESSARY CHANGES.
9#
10
11import os
12BASE_DIR = os.path.abspath(os.path.dirname(__file__) + '../..')
13PROJECT_DIR = BASE_DIR + '/sigi'
14
15DEBUG = True
16TEMPLATE_DEBUG = DEBUG
17
18# I can't determine this, use local_settings.py.
19ADMINS = (('root', 'root@localhost'),)
20MANAGERS = ADMINS
21SERVER_EMAIL = 'root@localhost'
22DEFAULT_FROM_EMAIL = 'noreply@localhost'
23
24INTERNAL_IPS = ('127.0.0.1',)
25
26DATABASE_ENGINE = 'postgresql_psycopg2'
27#DATABASE_ENGINE = 'sqlite3'
28DATABASE_NAME = 'sigi'
29DATABASE_USER = 'administrador'
30DATABASE_PASSWORD = 'interlegis'
31DATABASE_HOST = '10.1.10.44'
32DATABASE_PORT = '5432'         
33
34TIME_ZONE = 'Brazil/East'
35LANGUAGE_CODE = 'pt-br'
36DEFAULT_CHARSET = 'utf-8'
37SITE_ID = 1
38
39USE_I18N = True
40USE_L10N = True
41
42MEDIA_ROOT = BASE_DIR + '/media/'
43MEDIA_URL = '/sigi/media/'
44ADMIN_MEDIA_PREFIX = '/sigi/admin_media/'
45
46CACHE_BACKEND = 'dummy:///'
47CACHE_MIDDLEWARE_SECONDS = 60
48CACHE_MIDDLEWARE_KEY_PREFIX = 'sigi'
49CACHE_MIDDLEWARE_ANONYMOUS_ONLY = False
50
51# Used to provide a seed in secret-key hashing algorithms. Set this to
52# a random string in your local_settings.py - the longer, the better.
53SECRET_KEY = 'set-this-in-your-local_settings.py!'
54
55# List of callables that know how to import templates from various sources.
56TEMPLATE_LOADERS = (
57    'django.template.loaders.filesystem.load_template_source',
58    'django.template.loaders.app_directories.load_template_source',
59)
60
61TEMPLATE_CONTEXT_PROCESSORS = (
62    'django.core.context_processors.auth',
63    'django.core.context_processors.debug',
64    'django.core.context_processors.i18n',
65    'django.core.context_processors.media',
66    'sigi.context_processors.charts_data',
67)
68
69MIDDLEWARE_CLASSES = (
70    'django.middleware.http.ConditionalGetMiddleware',
71    'django.middleware.gzip.GZipMiddleware',
72    'django.contrib.sessions.middleware.SessionMiddleware',
73    'django.contrib.auth.middleware.AuthenticationMiddleware',
74    'django.middleware.cache.CacheMiddleware',
75    'django.middleware.common.CommonMiddleware',
76    'django.middleware.doc.XViewMiddleware',
77)
78
79ROOT_URLCONF = 'sigi.urls'
80
81TEMPLATE_DIRS = (
82    PROJECT_DIR + '/templates',
83)
84
85FIXTURE_DIRS = (PROJECT_DIR + '/fixtures',)
86
87INSTALLED_APPS = (
88    'django.contrib.auth',
89    'django.contrib.contenttypes',
90    'django.contrib.sessions',
91    'django.contrib.sites',
92    'django.contrib.admin',
93    'django_extensions',      # http://django-command-extensions.googlecode.com
94    'googlecharts',           # http://github.com/jacobian/django-googlecharts
95    'treemenus',              # http://django-treemenus.googlecode.com
96    'reporting',              # http://github.com/marinho/geraldo
97    'sigi.apps.casas',
98    'sigi.apps.contatos',
99    'sigi.apps.convenios',
100    'sigi.apps.inventario',
101    'sigi.apps.mesas',
102    'sigi.apps.parlamentares',
103    'sigi.apps.servicos',
104    'sigi.apps.relatorios',
105)
106
107try:
108    from local_settings import *
109except ImportError:
110    from warnings import warn
111    msg = "You don't have local_settings.py file, using defaults settings."
112    try:
113        # don't work in Python 2.4 or before
114        warn(msg, category=ImportWarning)
115    except NameError:
116        warn(msg)
Note: Veja TracBrowser para ajuda no uso do navegador do trac.
 

The contents and data of this website are published under license:
Creative Commons 4.0 Brasil - Atribuir Fonte - Compartilhar Igual.