1
0
mirror of https://github.com/scrapy/scrapy.git synced 2025-02-28 07:24:28 +00:00

21 lines
641 B
Python
Raw Normal View History

from django.conf.urls.defaults import *
from django.views.generic.simple import direct_to_template
from django.conf import settings
urlpatterns = patterns('',
(r"^$", direct_to_template, { "template": "home.html" }),
(r"^article/", include("article.urls")),
(r"^download/", include("download.urls")),
(r"^link/", include("link.urls")),
(r"^weblog/", include("blog.urls")),
(r"^admin/", include("django.contrib.admin.urls")),
)
if settings.DEBUG: # devel
urlpatterns += patterns('',
(r"^site-media/(?P<path>.*)$", "django.views.static.serve", { "document_root": settings.MEDIA_ROOT }),
)