|
@ -11,6 +11,7 @@ https://docs.djangoproject.com/en/dev/ref/settings/ |
|
|
# Build paths inside the project like this: os.path.join(BASE_DIR, ...) |
|
|
# Build paths inside the project like this: os.path.join(BASE_DIR, ...) |
|
|
import os |
|
|
import os |
|
|
import django.conf.global_settings as DEFAULT_SETTINGS |
|
|
import django.conf.global_settings as DEFAULT_SETTINGS |
|
|
|
|
|
|
|
|
BASE_DIR = os.path.dirname(os.path.dirname(__file__)) |
|
|
BASE_DIR = os.path.dirname(os.path.dirname(__file__)) |
|
|
|
|
|
|
|
|
# Quick-start development settings - unsuitable for production |
|
|
# Quick-start development settings - unsuitable for production |
|
@ -21,10 +22,16 @@ SECRET_KEY = '0$ip1fb5xtq%a=)-k_4r^(#jn0t^@+*^kihkxkozg-mip7+w3+' |
|
|
|
|
|
|
|
|
# SECURITY WARNING: don't run with debug turned on in production! |
|
|
# SECURITY WARNING: don't run with debug turned on in production! |
|
|
DEBUG = True |
|
|
DEBUG = True |
|
|
|
|
|
TEMPLATE_DEBUG = DEBUG |
|
|
|
|
|
ALLOWED_HOSTS = [] |
|
|
|
|
|
|
|
|
|
|
|
ADMINS = ( |
|
|
|
|
|
# ('Your Name', 'your_email@example.com'), |
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
TEMPLATE_DEBUG = True |
|
|
MANAGERS = ADMINS |
|
|
|
|
|
|
|
|
ALLOWED_HOSTS = [] |
|
|
SITE_ID = 1 |
|
|
|
|
|
|
|
|
TEMPLATE_CONTEXT_PROCESSORS = DEFAULT_SETTINGS.TEMPLATE_CONTEXT_PROCESSORS + ( |
|
|
TEMPLATE_CONTEXT_PROCESSORS = DEFAULT_SETTINGS.TEMPLATE_CONTEXT_PROCESSORS + ( |
|
|
'sigi.context_processors.charts_data', |
|
|
'sigi.context_processors.charts_data', |
|
@ -36,7 +43,6 @@ TEMPLATE_LOADERS = ('django.template.loaders.filesystem.Loader', |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Application definition |
|
|
# Application definition |
|
|
|
|
|
|
|
|
INSTALLED_APPS = ( |
|
|
INSTALLED_APPS = ( |
|
|
'django.contrib.admin', |
|
|
'django.contrib.admin', |
|
|
'django.contrib.auth', |
|
|
'django.contrib.auth', |
|
@ -77,10 +83,8 @@ MIDDLEWARE_CLASSES = ( |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
ROOT_URLCONF = 'sigi.urls' |
|
|
ROOT_URLCONF = 'sigi.urls' |
|
|
|
|
|
|
|
|
WSGI_APPLICATION = 'sigi.wsgi.application' |
|
|
WSGI_APPLICATION = 'sigi.wsgi.application' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Database |
|
|
# Database |
|
|
# https://docs.djangoproject.com/en/dev/ref/settings/#databases |
|
|
# https://docs.djangoproject.com/en/dev/ref/settings/#databases |
|
|
|
|
|
|
|
@ -93,34 +97,44 @@ DATABASES = { |
|
|
|
|
|
|
|
|
# Internationalization |
|
|
# Internationalization |
|
|
# https://docs.djangoproject.com/en/dev/topics/i18n/ |
|
|
# https://docs.djangoproject.com/en/dev/topics/i18n/ |
|
|
|
|
|
|
|
|
LANGUAGE_CODE = 'pt-br' |
|
|
LANGUAGE_CODE = 'pt-br' |
|
|
|
|
|
|
|
|
TIME_ZONE = 'UTC' |
|
|
|
|
|
|
|
|
|
|
|
USE_I18N = True |
|
|
USE_I18N = True |
|
|
|
|
|
|
|
|
USE_L10N = True |
|
|
USE_L10N = True |
|
|
|
|
|
USE_THOUSAND_SEPARATOR = True |
|
|
USE_TZ = True |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Static files (CSS, JavaScript, Images) |
|
|
# Static files (CSS, JavaScript, Images) |
|
|
# https://docs.djangoproject.com/en/dev/howto/static-files/ |
|
|
# https://docs.djangoproject.com/en/dev/howto/static-files/ |
|
|
STATIC_ROOT = os.path.join(BASE_DIR, 'static') |
|
|
STATIC_ROOT = os.path.join(BASE_DIR, 'static') |
|
|
|
|
|
|
|
|
STATIC_URL = '/static/' |
|
|
STATIC_URL = '/static/' |
|
|
|
|
|
|
|
|
STATICFILES_DIRS = ( |
|
|
STATICFILES_DIRS = ( |
|
|
os.path.join(BASE_DIR, 'sigiStatic'), |
|
|
os.path.join(BASE_DIR, 'sigiStatic'), |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
SERVER_EMAIL = 'sigi@interlegis.leg.br' |
|
|
DEFAULT_FROM_EMAIL = 'sesostris@interlegis.leg.br' |
|
|
DEFAULT_FROM_EMAIL = 'spdt@interlegis.leg.br' |
|
|
|
|
|
EMAIL_SUBJECT_PREFIX = u'[SIGI]' |
|
|
|
|
|
|
|
|
TEMPLATE_DIRS = ( |
|
|
TEMPLATE_DIRS = ( |
|
|
os.path.join(BASE_DIR, 'templates'), |
|
|
os.path.join(BASE_DIR, 'templates'), |
|
|
) |
|
|
) |
|
|
MEDIA_ROOT = os.path.join(BASE_DIR, 'media') |
|
|
MEDIA_ROOT = os.path.join(BASE_DIR, 'media') |
|
|
MEDIA_URL = '/media/' |
|
|
MEDIA_URL = '/media/' |
|
|
|
|
|
|
|
|
|
|
|
SESSION_EXPIRE_AT_BROWSER_CLOSE = True |
|
|
|
|
|
|
|
|
|
|
|
CACHES = { |
|
|
|
|
|
'default': { |
|
|
|
|
|
'BACKEND': 'django.core.cache.backends.dummy.DummyCache', |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
try: |
|
|
|
|
|
from local_settings import * |
|
|
|
|
|
except ImportError: |
|
|
|
|
|
from warnings import warn |
|
|
|
|
|
msg = "You don't have local_settings.py file, using defaults settings." |
|
|
|
|
|
try: |
|
|
|
|
|
# don't work in Python 2.4 or before |
|
|
|
|
|
warn(msg, category=ImportWarning) |
|
|
|
|
|
except NameError: |
|
|
|
|
|
warn(msg) |
|
|