django-cms: urls used by apphooks don't work with reverse() or {% url %}
问题 I'm using django-cms with apphooks to display book detail information. I need the page with the app hook to accept a slug that specifies which book to display. I created a page called 'books' and added the apphook 'BookDetailApp'. Here's what my books.cms_app file looks like: class BooksApp (CMSApp): name = _('Book Detail Page Application') urls = ['books.urls'] apphook_pool.register(BooksApp) Here's what my books.urls looks like: urlpatterns = patterns('', url(r'^(?P<slug>[\w\-]+)?',