X-Git-Url: https://git.mdrn.pl/prawokultury.git/blobdiff_plain/44090c986d9a16f6913047c25319c446bb9308ad..fb2d5b78a90d3042f7eb5e8e419fcbe6e62fd00d:/prawokultury/urls.py diff --git a/prawokultury/urls.py b/prawokultury/urls.py index f074158..436cb0e 100644 --- a/prawokultury/urls.py +++ b/prawokultury/urls.py @@ -19,10 +19,17 @@ urlpatterns = patterns('', url(r'^media/(?P.*)$', 'django.views.static.serve', { 'document_root': settings.MEDIA_ROOT, }), + url(r'^search/', include('haystack.urls')), ) + i18n_patterns('', url(string_concat(r'^', _('events'), r'/'), include('events.urls')), url(r'^comments/', include('django_comments_xtd.urls')), ) + migdal_urlpatterns +if settings.DEBUG: + urlpatterns += patterns('', + url(r'^media/(?P.*)$', 'django.views.static.serve', { + 'document_root': settings.MEDIA_ROOT, + }), + ) -urlpatterns += staticfiles_urlpatterns() \ No newline at end of file +urlpatterns += staticfiles_urlpatterns()