Files
HaitiData/django_project/charts-prj/settings.py
T

59 lines
1.5 KiB
Python

"""
Django settings for charts project.
Generated by 'django-admin startproject' using Django 1.8.7.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
import os
from geonode.settings import *
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
SITENAME = 'charts-prj'
LOCAL_ROOT = os.path.abspath(os.path.dirname(__file__))
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/1.8/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = '*u(5zzp_wjj!^!w4$h@e#jv!*y02z17lb8gu-l)j+*79p^r8%('
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
# Application definition
INSTALLED_APPS = INSTALLED_APPS + (
'charts_app',
'wfs_harvest'
)
WSGI_APPLICATION = 'charts-prj.wsgi.application'
# Additional directories which hold static files
STATICFILES_DIRS.append(
os.path.join(LOCAL_ROOT, "static"),
)
# Location of url mappings
ROOT_URLCONF = 'charts-prj.urls'
# Location of locale files
LOCALE_PATHS = (
os.path.join(LOCAL_ROOT, 'locale'),
) + LOCALE_PATHS
TEMPLATES[0]['DIRS'].insert(0, os.path.join(LOCAL_ROOT, "templates"))
MAX_CSV_RECORDS = 20000
ALLOWED_HOSTS = ['*']
PROXY_ALLOWED_HOSTS = ['*']