Fakultas Ilmu Komputer UI

Commit 1ceb9e07 authored by jordan's avatar jordan
Browse files

bootstrap

parent 753a9cc7
......@@ -46,8 +46,8 @@ AUTHENTICATION_BACKENDS = ["accounts.authentication.PasswordlessAuthenticationBa
MIDDLEWARE = [
'whitenoise.middleware.WhiteNoiseMiddleware',
"django.middleware.security.SecurityMiddleware",
"whitenoise.middleware.WhiteNoiseMiddleware",
"django.contrib.sessions.middleware.SessionMiddleware",
"django.middleware.common.CommonMiddleware",
"django.middleware.csrf.CsrfViewMiddleware",
......@@ -126,7 +126,7 @@ STATIC_ROOT = os.path.abspath(os.path.join(BASE_DIR, "../static"))
STATICFILES_DIRS = (os.path.join(PROJECT_ROOT, "static"),)
# Add configuration for static files storage using whitenoise
STATICFILES_STORAGE = 'whitenoise.django.GzipManifestStaticFilesStorage'
STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'
import dj_database_url
prod_db = dj_database_url.config(conn_max_age=500)
......
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