Fakultas Ilmu Komputer UI

Commit 04b3b161 authored by Fakhira Devina's avatar Fakhira Devina
Browse files

add media url

parent 7b9cc5e5
......@@ -26,12 +26,11 @@ SECRET_KEY = os.getenv("SECRET_KEY", 'akua')
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
DEBUG = FALSE
#ALLOWED_HOSTS = ['localhost', '127.0.0.1', 'poipole-staging.herokuapp.com',
# '34.101.147.63', 'www.poipole.com', '10.119.105.26', 'bisago.cs.ui.ac.id']
ALLOWED_HOSTS = ['localhost', '127.0.0.1', '10.119.105.26', 'bisago.cs.ui.ac.id']
ALLOWED_HOSTS = ['*']
#ALLOWED_HOSTS = ['*']
# Application definition
INSTALLED_APPS = [
......@@ -154,9 +153,12 @@ USE_TZ = True
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/3.0/howto/static-files/
STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'static/')
MEDIA_URL = '/media/'
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
#STATICFILES_STORAGE = 'storages.backends.s3boto3.S3Boto3Storage'
#DEFAULT_FILE_STORAGE = 'pplbackend.storage_backends.MediaStorage'
......
......@@ -42,5 +42,4 @@ urlpatterns = [
path('request-token/', views.obtain_auth_token, name='token-request-auth'),
#path('api-token-auth/', views.obtain_auth_token, name='api-token-auth'),
path('informasi-fasilitas/', include('informasi_fasilitas.urls')),
path('layanan-khusus/', include('layanan_khusus.urls'))
]
path('layanan-khusus/', include('layanan_khusus.urls'))] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
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