Fakultas Ilmu Komputer UI

Commit 56e1d31d authored by Ryan Karyadiputera's avatar Ryan Karyadiputera
Browse files

test

parent 2341b86e
Pipeline #73845 passed with stage
in 2 minutes and 10 seconds
......@@ -14,6 +14,8 @@ import environ
import os
import dj_database_url
from datetime import timedelta
import mimetypes
mimetypes.add_type("text/css", ".css", True)
# Environ Setup
......
......@@ -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"),
......
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