How to integrate Django-CMS into an existing project

不打扰是莪最后的温柔 提交于 2019-12-05 11:24:20

With Django CMS, it is indeed possible to integrate it into an existing project.

If you already have an existing project with URL/menu management, then you can simply integrate just the per-page CMS, which can be added as additional field to your model:

from django.db import models
from cms.models.fields import PlaceholderField

class MyModel(models.Model):
    # your fields
    my_placeholder = PlaceholderField('placeholder_name')
    # your methods

You can find more information here.

For any existing projects, you are likely to need to use the manual installation process outlined here.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!