blechreiz-website/location_field/urls.py

10 lines
214 B
Python
Raw Permalink Normal View History

import os
from django.urls import re_path
from django.views.static import serve
app_dir = os.path.dirname(__file__)
urlpatterns = [
re_path(r'^media/(.*)$', serve, {'document_root': '%s/media' % app_dir}),
]