Tutorial for the Jango CMS App Hook App

I have a Django CMS project that needs to create a Non CMS "Achievemnets" application. The client wants to completely control the design of the page, which means that the page must be a CMS page. However, I created specific views to show all achievemtns on the page and clicking on the link more, it will be shown in detail. I need to transfer it to the Django CMS, which I tried according to the CMS App Hook method in the Django DMS documentation. But none of them work.

Please tell me a tutorial that is good for learning CMS App Hooking

+5
source share
1 answer

"" URL- Django-CMS, .

, URL- Django-CMS://

, .

#your_app.urls
from django.conf.urls.defaults import url, patterns

urlpatterns = patterns('your_app.views',
    (r'^$', 'index'),
)

#your_app.views
from django.shortcuts import render

from your_app.models import Achievement

def index(request):
    achievements = Achievement.objects.all()
    return render(request, 'achievements/index.html',
        {'achievements' : achievements})

Django-CMS, , Django-CMS, URL- , . , Django-CMS slug, URL .

, .

+12

All Articles