mirror of
https://github.com/django/django.git
synced 2024-12-27 03:25:58 +00:00
a9a0f0b03f
* Added ability to pass the project or app directory path as the second argument * Added ``--template`` option for specifying custom project and app templates * Cleaned up admin_scripts tests a little while I was there git-svn-id: http://code.djangoproject.com/svn/django/trunk@17246 bcc190cf-cafb-0310-a4f2-bffc1f526a37
11 lines
257 B
Python
11 lines
257 B
Python
import os
|
|
from django.conf.urls import patterns
|
|
|
|
here = os.path.dirname(__file__)
|
|
|
|
urlpatterns = patterns('',
|
|
(r'^custom_templates/(?P<path>.*)$', 'django.views.static.serve', {
|
|
'document_root': os.path.join(here, 'custom_templates'),
|
|
}),
|
|
)
|