Commit ce89cb99 authored by Raphael James's avatar Raphael James

Repair setings for media upload

Summary: Repair settings for media upload

Test Plan: None

Reviewers: Valz

Reviewed By: Valz

Differential Revision: https://phabricator.atilla.org/D29
parent edeab700
......@@ -111,6 +111,7 @@ USE_TZ = True
# Media files URL
MEDIA_ROOT = os.path.join(BASE_DIR, 'media/')
MEDIA_URL = '/media/'
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/1.9/howto/static-files/
......
......@@ -16,7 +16,9 @@ Including another URLconf
from django.conf.urls import include, url
from django.contrib import admin
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.conf.urls.static import static
from . import settings
from portal import views as portal_views
......@@ -27,6 +29,6 @@ urlpatterns = [
url(r'^associations/',
include('associations.urls', namespace='associations')
),
]
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
urlpatterns += staticfiles_urlpatterns()
Markdown is supported
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