Re: django-cms apphook urls don't work with reverse() using Python shell

2014-08-19 Thread Ramiro Morales
On Tue, Aug 19, 2014 at 8:14 AM, Philipp wrote: > [...] > > This is my urls.py file: > > urlpatterns = patterns('', > url(r'^(?P[\w\-]+)?', ArticleView.as_view(), > name='article-by-slug'), > ) > > [...] reverse('article_app:article-by-slug', kwargs={'slug': a.slug})

django-cms apphook urls don't work with reverse() using Python shell

2014-08-19 Thread Philipp
Hi everyone, I've created a django CMS apphook. Unfortunately I'm not able to reverse apphook urls using the Python shell. The cms_app.py file looks like: class ArticleApp (CMSApp): name = _('Article App') app_name = 'article_app' urls = ['article.urls']