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