Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

160 lines (131 sloc) 5.491 kb
# Django settings for srmc project.
import sys
import os.path
PROJECT_PATH = os.path.dirname(os.path.abspath(__file__))
#sys.path.insert(0, os.path.join(PROJECT_PATH, 'apps'))
DEBUG = False
('Gladson Simplicio Brito', ''),
'default': {
'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
'NAME': 'FLX_DB_NAME', # Or path to database file if using sqlite3.
'USER': 'FLX_DB_USER', # Not used with sqlite3.
'PASSWORD': 'FLX_DB_PASS', # Not used with sqlite3.
'HOST': 'FLX_DB_HOST', # Set to empty string for localhost. Not used with sqlite3.
'PORT': '3306', # Set to empty string for default. Not used with sqlite3.
# Local time zone for this installation. Choices can be found here:
# although not all choices may be available on all operating systems.
# On Unix systems, a value of None will cause Django to use the same
# timezone as the operating system.
# If running in a Windows environment this must be set to the same as your
# system time zone.
TIME_ZONE = 'America/Porto_Velho'
# Language code for this installation. All choices can be found here:
# If you set this to False, Django will make some optimizations so as not
# to load the internationalization machinery.
USE_I18N = True
# If you set this to False, Django will not format dates, numbers and
# calendars according to the current locale
USE_L10N = True
# Absolute filesystem path to the directory that will hold user-uploaded files.
# Example: "/home/media/"
MEDIA_ROOT = os.path.join(PROJECT_PATH, 'media')
# URL that handles the media served from MEDIA_ROOT. Make sure to use a
# trailing slash.
# Examples: "", ""
MEDIA_URL = '/media/'
# Absolute path to the directory static files should be collected to.
# Don't put anything in this directory yourself; store your static files
# in apps' "static/" subdirectories and in STATICFILES_DIRS.
# Example: "/home/media/"
STATIC_ROOT = os.path.join(PROJECT_PATH, 'static')
# URL prefix for static files.
# Example: ""
STATIC_URL = '/static/'
# URL prefix for admin static files -- CSS, JavaScript and images.
# Make sure to use a trailing slash.
# Examples: "", "/static/admin/".
ADMIN_MEDIA_PREFIX = '/static/admin/'
# Additional locations of static files
# Put strings here, like "/home/html/static" or "C:/www/django/static".
# Always use forward slashes, even on Windows.
# Don't forget to use absolute paths, not relative paths.
('site', os.path.join(PROJECT_PATH, 'sitestatic')),
# List of finder classes that know how to find static files in
# various locations.
# 'django.contrib.staticfiles.finders.DefaultStorageFinder',
# Make this unique, and don't share it with anybody.
SECRET_KEY = '$l+m(-3q#*^2nx()1kj=*9x3_f@0fpi8s7+o94up+t+g^8r9xp'
# List of callables that know how to import templates from various sources.
# 'django.template.loaders.eggs.Loader',
ROOT_URLCONF = 'srmc.urls'
os.path.join(PROJECT_PATH, 'templates'),
# ==============================================================================
# Local settings here
# ==============================================================================
# Flag to serve static files under media/ and static/
# Uncomment the next line to enable the admin:
# Uncomment the next line to enable admin documentation:
# 'django.contrib.admindocs',
# A sample logging configuration. The only tangible logging
# performed by this configuration is to send an email to
# the site admins on every HTTP 500 error.
# See for
# more details on how to customize your logging configuration.
'version': 1,
'disable_existing_loggers': False,
'handlers': {
'mail_admins': {
'level': 'ERROR',
'class': 'django.utils.log.AdminEmailHandler'
'loggers': {
'django.request': {
'handlers': ['mail_admins'],
'level': 'ERROR',
'propagate': True,
Jump to Line
Something went wrong with that request. Please try again.