зеркало из https://github.com/mozilla/kitsune.git
19 строки
538 B
Python
19 строки
538 B
Python
from django.conf.urls.defaults import *
|
|
from django.conf import settings
|
|
|
|
# Uncomment the next two lines to enable the admin:
|
|
# from django.contrib import admin
|
|
# admin.autodiscover()
|
|
|
|
urlpatterns = patterns('',
|
|
(r'^search', include('search.urls')),
|
|
(r'^forums', include('forums.urls')),
|
|
)
|
|
|
|
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}),
|
|
)
|