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'/$'),
# 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<category_slug>[^/]*)/$'),
'migdal.views.entry_list', name='migdal_category'),