X-Git-Url: https://git.mdrn.pl/prawokultury.git/blobdiff_plain/44090c986d9a16f6913047c25319c446bb9308ad..0e199a41c0f2375dbf555452bbdc46162fff8853:/migdal/urls.py diff --git a/migdal/urls.py b/migdal/urls.py index b600cef..9215078 100644 --- a/migdal/urls.py +++ b/migdal/urls.py @@ -5,11 +5,11 @@ from django.conf.urls import patterns, include, url from django.utils.translation import ugettext_lazy as _ from django.utils.translation import string_concat -from migdal import feeds, settings +from migdal import feeds, app_settings from migdal.helpers import i18n_patterns pats = [] -for t in settings.TYPES: +for t in app_settings.TYPES: pats += [ # entry list url(string_concat(r'^', t.slug, r'/$'), @@ -28,6 +28,9 @@ urlpatterns = i18n_patterns('', # main page url(r'^$', 'migdal.views.entry_list', name='migdal_main'), url(r'^rss.xml$', feeds.EntriesFeed(), name='migdal_main_feed'), + # submit new entry + url(string_concat(r'^', _('submit'), r'/$'), 'migdal.views.submit', name='migdal_submit'), + url(string_concat(r'^', _('submit'), r'/', _('thanks'), r'$'), 'migdal.views.submit_thanks', name='migdal_submit_thanks'), # category url(string_concat(r'^', _('categories'), r'/(?P[^/]*)/$'), 'migdal.views.entry_list', name='migdal_category'),