1
0
mirror of https://github.com/django/django.git synced 2025-03-29 10:40:45 +00:00
Claude Paroz 4214a22e06 [1.5.x] Fixed #19357 -- Allow non-ASCII chars in filesystem paths
Thanks kujiu for the report and Aymeric Augustin for the review.
Backport of c91667338 from master.
2012-12-08 11:16:03 +01:00

12 lines
299 B
Python

import os
from django.conf.urls import patterns
from django.utils._os import upath
here = os.path.dirname(upath(__file__))
urlpatterns = patterns('',
(r'^custom_templates/(?P<path>.*)$', 'django.views.static.serve', {
'document_root': os.path.join(here, 'custom_templates'),
}),
)