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