Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
memopol
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
32
Issues
32
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Political Memory
memopol
Commits
ae65d761
Commit
ae65d761
authored
Oct 09, 2016
by
okhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Showing
1 changed file
with
36 additions
and
0 deletions
+36
-0
src/memopol/tests/local_settings.py
src/memopol/tests/local_settings.py
+36
-0
No files found.
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
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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