Fakultas Ilmu Komputer UI
Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
PMPL
Collection of Practice
2019
1506757352-practice
Commits
bdcbfd27
Commit
bdcbfd27
authored
Sep 24, 2019
by
Syahrul Ardiansyah
Browse files
Change Heroku import in setting
parent
25ec4c7d
Changes
1
Hide whitespace changes
Inline
Side-by-side
latihan1/settings.py
View file @
bdcbfd27
...
...
@@ -11,7 +11,11 @@ https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import
os
import
django_heroku
if
'I_AM_HEROKU'
in
os
.
environ
:
# Configure Django App for Heroku.
import
django_heroku
django_heroku
.
settings
(
locals
())
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR
=
os
.
path
.
dirname
(
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
)))
...
...
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