Commit ae65d761 authored by okhin's avatar okhin

Adding a local_settings, the database will be created by py.tests, and is the REF_NAME of the build

parent 13c1b7e1
"""
Memopol local settings example.
Edit and rename to local_settings.py to use.
"""
import os
from socket import gethostname
DATA_DIR = 'data'
LOG_DIR = 'log'
PUBLIC_DIR = 'wsgi/static'
DATABASES = {
'default': {
'NAME': os.environ.get('CI_BUILD_REF_NAME'),
'USER': 'memopol_test',
'PASSWORD': 'memopol_test',
'HOST': 'localhost',
'PORT': '5433',
'ENGINE': 'django.db.backends.postgresql_psycopg2',
}
}
ALLOWED_HOSTS = [
gethostname(),
]
SITE_ID = 1
SITE_NAME = 'Memopol'
SITE_DOMAIN = gethostname()
ORGANIZATION_NAME = 'Memopol'
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