Fakultas Ilmu Komputer UI
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Ryan Karyadiputera
ppl-berkah-back
Commits
679321b1
Commit
679321b1
authored
May 16, 2021
by
Ryan Karyadiputera
Browse files
test3
parent
10fdd0a4
Pipeline
#76878
failed with stage
in 1 minute and 26 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
sip/settings/dev.py
View file @
679321b1
...
@@ -32,7 +32,7 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
...
@@ -32,7 +32,7 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
SECRET_KEY
=
env
(
'DJANGO_SECRET_KEY'
)
SECRET_KEY
=
env
(
'DJANGO_SECRET_KEY'
)
# SECURITY WARNING: don't run with debug turned on in production!
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG
=
Fals
e
DEBUG
=
Tru
e
# HOST_URL = os.getenv('HOST_URL')
# HOST_URL = os.getenv('HOST_URL')
...
...
sip/settings/production.py
View file @
679321b1
...
@@ -13,8 +13,6 @@ https://docs.djangoproject.com/en/3.0/ref/settings/
...
@@ -13,8 +13,6 @@ https://docs.djangoproject.com/en/3.0/ref/settings/
import
environ
import
environ
import
os
import
os
from
datetime
import
timedelta
from
datetime
import
timedelta
import
mimetypes
mimetypes
.
add_type
(
"text/css"
,
".css"
,
True
)
# Environ Setup
# Environ Setup
...
@@ -225,10 +223,10 @@ JWT_AUTH = {
...
@@ -225,10 +223,10 @@ JWT_AUTH = {
'JWT_AUTH_COOKIE'
:
None
,
'JWT_AUTH_COOKIE'
:
None
,
}
}
SUCCESS_SSO_AUTH_REDIRECT
=
"http://
sipraktikum-frontend-2020-a
.herokuapp.com/"
SUCCESS_SSO_AUTH_REDIRECT
=
"http://
ppl-berkah
.herokuapp.com/"
CORS_ORIGIN_WHITELIST
=
[
CORS_ORIGIN_WHITELIST
=
[
"http://
sipraktikum-frontend-2020-a
.herokuapp.com"
,
"http://
ppl-berkah
.herokuapp.com
/
"
,
"http://localhost:8000"
,
"http://localhost:8000"
,
"http://127.0.0.1:8000"
,
"http://127.0.0.1:8000"
,
]
]
...
...
sip/wsgi.py
View file @
679321b1
...
@@ -11,6 +11,6 @@ import os
...
@@ -11,6 +11,6 @@ import os
from
django.core.wsgi
import
get_wsgi_application
from
django.core.wsgi
import
get_wsgi_application
os
.
environ
.
setdefault
(
'DJANGO_SETTINGS_MODULE'
,
'sip.settings.
staging
'
)
os
.
environ
.
setdefault
(
'DJANGO_SETTINGS_MODULE'
,
'sip.settings.
production
'
)
application
=
get_wsgi_application
()
application
=
get_wsgi_application
()
Write
Preview
Supports
Markdown
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