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
1506722765-practice
Commits
1ceb9e07
Commit
1ceb9e07
authored
Dec 23, 2019
by
jordan
Browse files
bootstrap
parent
753a9cc7
Changes
1
Hide whitespace changes
Inline
Side-by-side
superlists/settings.py
View file @
1ceb9e07
...
...
@@ -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.Gzip
ManifestStaticFilesStorage'
STATICFILES_STORAGE
=
'whitenoise.
storage.Compressed
ManifestStaticFilesStorage'
import
dj_database_url
prod_db
=
dj_database_url
.
config
(
conn_max_age
=
500
)
...
...
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