html {{ djedi_content "content_key" }} bash pip install djedi-cms python INSTALLED_APPS = [ ... 'djedi', ... ] html <!DOCTYPE html> <html> <head> <title>My Website</title> </head> <body> <h1>Welcome to my website!</h1> <p>{{ djedi_content "welcome_message" }}</p> </body> </html> python from djedi.utils import editor_url def edit_page(request): page_key = "welcome_message" url = editor_url(request, page_key) return redirect(url)


上一篇:
下一篇:
切换中文