X-Git-Url: https://git.mdrn.pl/prawokultury.git/blobdiff_plain/44090c986d9a16f6913047c25319c446bb9308ad..ce7f059d284616e5bf6f62306c1def5d9aae5ab4:/migdal/urls.py?ds=sidebyside 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'),