Skip to content

Commit

Permalink
Added static-map for media urls.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelhiiva committed Feb 14, 2021
1 parent 77c58c6 commit 0853919
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion agagd/agagd/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
]
2 changes: 1 addition & 1 deletion scripts/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 0853919

Please sign in to comment.