fnp
/
prawokultury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bugfix
[prawokultury.git]
/
migdal
/
urls.py
diff --git
a/migdal/urls.py
b/migdal/urls.py
index
b600cef
..
9215078
100644
(file)
--- 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 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 = []
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'/$'),
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'),
# 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'),
# category
url(string_concat(r'^', _('categories'), r'/(?P<category_slug>[^/]*)/$'),
'migdal.views.entry_list', name='migdal_category'),