Fakultas Ilmu Komputer UI

Commit 90954a18 authored by Ryan Karyadiputera's avatar Ryan Karyadiputera
Browse files

test

parent e540f30d
Pipeline #73858 passed with stage
in 2 minutes and 8 seconds
......@@ -15,7 +15,11 @@ import os
# import sys
import dj_database_url
from datetime import timedelta
import mimetypes
mimetypes.add_type("text/css", ".css", True)
#env = environ.Env()
#environ.Env.read_env() # Reading .env file
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
......@@ -24,10 +28,10 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# See https://docs.djangoproject.com/en/3.0/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = os.environ.get("DJANGO_SECRET_KEY")
SECRET_KEY = os.getenv('DJANGO_SECRET_KEY', "s3cr3t_k3y_c4nn0t_h4ck3d_by_l33t_1337")
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = False
DEBUG = True
# HOST_URL = os.getenv('HOST_URL')
......@@ -120,7 +124,7 @@ if os.environ.get('DATABASE_URL') is not None:
# DOMAIN='https://ppl2020a1.cs.ui.ac.id'
# else:
# DOMAIN='http://si-praktikum-backend.herokuapp.com'
# DOMAIN='http://sipraktikum-backend.herokuapp.com'
# Password validation
......@@ -172,7 +176,7 @@ AWS_S3_CUSTOM_DOMAIN = '%s.s3.amazonaws.com' % AWS_STORAGE_BUCKET_NAME
AWS_LOCATION = 'static'
STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(PROJECT_ROOT, 'static')
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
STATICFILES_DIRS = [
'static/',
os.path.join(BASE_DIR, "static"),
......@@ -231,7 +235,7 @@ JWT_AUTH = {
'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_ALLOW_ALL = True
# CORS_ORIGIN_WHITELIST = [
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment