1👍
✅
Uh, I figured it out. Well the hard-coded URLs inside the app templates do not work. One should use {% url %} tags inside the templates.
👤Neo
1👍
What you need to do is create an apphook for your polls application and include the urls there. Have a look at: http://docs.django-cms.org/en/2.1.3/extending_cms/extending_examples.html#my-first-app-apphook
EDIT
Remember to restart the server once you attach the apphook.
- [Answered ]-Django Misconfiguration
- [Answered ]-How to display/use a dropdown in the django admin
- [Answered ]-Python django run bash script in server
0👍
Using apphooks would be the solution, however It works if you put the cms url route at last, at the end of the urlpatterns. Try that
- [Answered ]-Django ModelAdmin Fieldset within fieldset
- [Answered ]-Python socket send message Invalid HTTP
- [Answered ]-Error using a django template
- [Answered ]-Histograms on SQL in Django QuerySet Annotation / Aggregation
Source:stackexchange.com