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
Metagenomics
metagenedb
Commits
e89eb906
Commit
e89eb906
authored
Jun 18, 2019
by
Kenzo-Hugo Hillion
♻
Browse files
add allowed host in debug
parent
88ab2352
Changes
3
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
e89eb906
__pycache__/
*.egg-info/
.env
.env_dev
.idea/
# Backend static files
...
...
backend/metagenedb/settings/django.py
View file @
e89eb906
...
...
@@ -98,6 +98,9 @@ CORS_ORIGIN_WHITELIST = (
DEBUG
=
env
.
bool
(
'DEBUG'
,
default
=
False
)
TEMPLATE_DEBUG
=
DEBUG
if
DEBUG
:
ALLOWED_HOSTS
=
[
'*'
]
DATABASES
=
{
'default'
:
{
'ENGINE'
:
'django.db.backends.postgresql'
,
...
...
@@ -115,3 +118,5 @@ STATIC_ROOT = public_root('static')
STATIC_URL
=
env
.
str
(
'STATIC_URL'
,
default
=
'/static/'
)
SECRET_KEY
=
env
.
str
(
'SECRET_KEY'
)
backend/requirements.txt
View file @
e89eb906
Django==2.2.1
django-cors-headers==3.0.2
django-environ==0.4.5
django-extensions==2.1.7
django-environ
djangorestframework==3.9.4
psycopg2==2.8.2
pytz==2019.1
...
...
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