kitsune/urls.py

19 строки
538 B
Python
Исходник Обычный вид История

2010-02-04 02:09:30 +03:00
from django.conf.urls.defaults import *
from django.conf import settings
2010-02-04 02:09:30 +03:00
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
urlpatterns = patterns('',
2010-04-24 01:08:50 +04:00
(r'^search', include('search.urls')),
(r'^forums', include('forums.urls')),
2010-02-04 02:09:30 +03:00
)
if settings.DEBUG:
media_url = settings.MEDIA_URL.lstrip('/').rstrip('/')
urlpatterns += patterns('',
(r'^%s/(?P<path>.*)$' % media_url, 'django.views.static.serve',
{'document_root': settings.MEDIA_ROOT}),
)