mirror of https://github.com/scrapy/scrapy.git
removed unneeded index view
--HG-- extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40443
This commit is contained in:
parent
9cc3b2881f
commit
2f5cff0b24
|
|
@ -1,12 +1,12 @@
|
|||
from django.conf import settings
|
||||
from django.conf.urls.defaults import *
|
||||
|
||||
from scrapyorg.docs.views import index, document
|
||||
from scrapyorg.docs.views import document
|
||||
|
||||
|
||||
urlpatterns = patterns('',
|
||||
(r'^$', index),
|
||||
(r'^(?P<url>[\w./-]*)/$', document),
|
||||
url(r'^$', document, {'url': ''}),
|
||||
url(r'^(?P<url>[\w./-]*)/$', document),
|
||||
)
|
||||
|
||||
if settings.DEBUG: # devel
|
||||
|
|
|
|||
|
|
@ -7,10 +7,6 @@ from django.shortcuts import render_to_response
|
|||
from django.template import RequestContext
|
||||
|
||||
|
||||
def index(request):
|
||||
return document(request, '')
|
||||
|
||||
|
||||
def document(request, url):
|
||||
docroot = settings.DOC_PICKLE_ROOT
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue