Commit 7a31a69b authored by Nicolas Joyard's avatar Nicolas Joyard

Add default local settings (usable in CI)

parent 289aeeb0
......@@ -3,12 +3,6 @@ env:
global:
- DJANGO_DEBUG=True
- DJANGO_SETTINGS_MODULE=memopol.settings
- MEMOPOL_DB_NAME=memopol
- MEMOPOL_DB_USER=memopol
- MEMOPOL_DB_PASSWORD=memopol
- MEMOPOL_DB_HOST=localhost
- MEMOPOL_DB_PORT=5432
- MEMOPOL_DB_ENGINE=django.db.backends.postgresql_psycopg2
language: python
python:
- '2.7'
......
......@@ -9,6 +9,7 @@ Uses the following environment variables:
"""
import os
from socket import gethostname
from django.conf import global_settings
from django.utils.crypto import get_random_string
......@@ -209,6 +210,42 @@ LOGGING = {
# Local settings
#
#
# Defaults
#
DATA_DIR = 'data'
LOG_DIR = 'log'
PUBLIC_DIR = 'wsgi/static'
DATABASES = {
'default': {
'NAME': 'memopol',
'USER': 'memopol',
'PASSWORD': 'memopol',
'HOST': 'localhost',
'PORT': '5432',
'ENGINE': 'django.db.backends.postgresql_psycopg2',
}
}
ALLOWED_HOSTS = [
gethostname(),
]
SITE_ID = 1
SITE_NAME = 'Memopol'
SITE_DOMAIN = gethostname()
ORGANIZATION_NAME = 'Memopol'
#
# Import local overrides
#
try:
from local_settings import * # noqa
except ImportError:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment