2011-12-22 22:38:02 +00:00
|
|
|
import os
|
2015-02-09 18:19:34 +00:00
|
|
|
|
2014-04-02 00:46:34 +00:00
|
|
|
from django.conf.urls import url
|
2012-12-08 10:13:52 +00:00
|
|
|
from django.utils._os import upath
|
2014-08-12 14:54:42 +00:00
|
|
|
from django.views.static import serve
|
2011-12-22 22:38:02 +00:00
|
|
|
|
2012-12-08 10:13:52 +00:00
|
|
|
here = os.path.dirname(upath(__file__))
|
2011-12-22 22:38:02 +00:00
|
|
|
|
2014-04-02 00:46:34 +00:00
|
|
|
urlpatterns = [
|
2014-08-12 14:54:42 +00:00
|
|
|
url(r'^custom_templates/(?P<path>.*)$', serve, {
|
2014-04-02 00:46:34 +00:00
|
|
|
'document_root': os.path.join(here, 'custom_templates')}),
|
|
|
|
]
|