1
0
mirror of https://github.com/scrapy/scrapy.git synced 2025-03-02 21:17:58 +00:00

19 lines
452 B
Python
Raw Normal View History

from django.conf import settings
from django.conf.urls.defaults import *
from scrapyorg.docs.views import document
urlpatterns = patterns('',
url(r'^$', document, {'url': ''}),
url(r'^(?P<url>[\w./-]*)/$', document),
)
if settings.DEBUG: # devel
urlpatterns += patterns('',
(r'^%s/(?P<path>.*)$' % settings.MEDIA_URL[1:],
'django.views.static.serve',
{'document_root': settings.MEDIA_ROOT}),
)