blechreiz-website/location_field/urls.py

12 lines
232 B
Python

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