diff --git a/agagd/agagd/urls.py b/agagd/agagd/urls.py index 6f7546d7..da27ee49 100644 --- a/agagd/agagd/urls.py +++ b/agagd/agagd/urls.py @@ -27,4 +27,4 @@ # Static Pages url(r'^information/$', agagd_views.information), url(r'^qualifications/$', agagd_views.qualifications) -] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) +] diff --git a/scripts/entrypoint.sh b/scripts/entrypoint.sh index 4c1636ee..39426374 100755 --- a/scripts/entrypoint.sh +++ b/scripts/entrypoint.sh @@ -32,4 +32,4 @@ if $LOAD_FIXTURES == "true"; then python manage.py loaddata /tmp/fake_agagd_data.json fi -uwsgi --http-socket 0.0.0.0:3031 --module agagd.wsgi --static-map /static=/tmp/static/ +uwsgi --http-socket 0.0.0.0:3031 --module agagd.wsgi --static-map /static=/tmp/static/ --static-map /media=/srv/media