Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Anthony
memopol
Commits
ae65d761
Commit
ae65d761
authored
Oct 09, 2016
by
okhin
Browse files
Adding a local_settings, the database will be created by py.tests, and is the REF_NAME of the build
parent
13c1b7e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/memopol/tests/local_settings.py
0 → 100644
View file @
ae65d761
"""
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'
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment