Fakultas Ilmu Komputer UI

Commit 92fbbfd4 authored by Muhammad Ilham Peruzzi's avatar Muhammad Ilham Peruzzi
Browse files

fix settings to deploy

parent 5643f20d
Pipeline #20455 failed with stages
in 44 seconds
dj-database-url==0.5.0
Django==2.2.5
django-environ==0.4.4
gunicorn==19.9.0
psycopg2-binary==2.8.3
pytz==2019.2
selenium==3.141.0
six==1.12.0
sqlparse==0.3.0
whitenoise==4.1.3
\ No newline at end of file
......@@ -48,6 +48,7 @@ MIDDLEWARE = [
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'whitenoise.middleware.WhiteNoiseMiddleware',
]
ROOT_URLCONF = 'superlists.urls'
......@@ -119,8 +120,5 @@ USE_TZ = True
# https://docs.djangoproject.com/en/1.10/howto/static-files/
STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'static')
STATICFILES_DIRS = [
os.path.join(BASE_DIR, "static"),
]
STATIC_ROOT = os.path.join(PROJECT_DIR, 'static')
STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'
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