Merge pull request #492 from pcoder/feature/cms_prefix
Added /cms prefix for all the django-cms generated urls
This commit is contained in:
commit
1b7da239e1
1 changed files with 8 additions and 3 deletions
|
@ -49,9 +49,14 @@ urlpatterns += i18n_patterns(
|
||||||
include('ungleich_page.urls',
|
include('ungleich_page.urls',
|
||||||
namespace='ungleich_page'),
|
namespace='ungleich_page'),
|
||||||
name='ungleich_page'),
|
name='ungleich_page'),
|
||||||
url(r'^blog/', include('ungleich.urls',
|
url(r'^cms/blog/',
|
||||||
namespace='ungleich')),
|
include('ungleich.urls', namespace='ungleich')),
|
||||||
url(r'^', include('cms.urls'))
|
url(
|
||||||
|
r'^blog/(?P<year>\d{4})/(?P<month>\d{1,2})/(?P<day>\d{1,2})/(?P<slug>\w[-\w]*)/$',
|
||||||
|
RedirectView.as_view(pattern_name='ungleich:post-detail')),
|
||||||
|
url(r'^blog/|cms/$', RedirectView.as_view(
|
||||||
|
url=reverse_lazy('ungleich:post-list')), name='blog_list_view'),
|
||||||
|
url(r'^cms/', include('cms.urls')),
|
||||||
)
|
)
|
||||||
|
|
||||||
urlpatterns += [
|
urlpatterns += [
|
||||||
|
|
Loading…
Reference in a new issue