How to integrate Django-CMS into an existing project
<p>I need to integrate Django-CMS 3.x into an existing project (<code>mypjc</code> hereafter). I already checked <a href="http://stackoverflow.com/questions/31167313/how-to-start-integrating-django-cms-into-existing-project">this</a> question (and other similar) but they point to a <a href="http://django-cms.readthedocs.io/en/3.0.12/how_to/integrate.html" rel="nofollow">tutorial</a> page that is no longer available.</p>

<p>I'm a bit confused by the tons of infos you can find online and I have not really understood if Django-CMS <strong>can be integrated</strong> as an <strong>app</strong> into an existing and independently running Django project.</p>

<p><code>mypjc</code> (using Django 1.8) would benefit from a user friendly CMS. Basically I'd the user to be able to write texts and to load in their posts images stored in the (common) database, images that are created by the user in <code>mypjc</code>.</p>

<p>Is it possible? if yes, could anyone help me defying the steps needed to make the integration clean and successful?</p>

<p>Thank you in advance for any help you could provide.  </p>

<p>With Django CMS, it is indeed possible to integrate it into an existing project. </p>

<p>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:</p>

<pre><code>from django.db import models
from cms.models.fields import PlaceholderField

class MyModel(models.Model):
    # your fields
    my_placeholder = PlaceholderField('placeholder_name')
    # your methods
</code></pre>

<p>You can find more information <a href="http://docs.django-cms.org/en/release-3.3.x/how_to/placeholders.html" rel="nofollow">here</a>.</p>

<p>For any existing projects, you are likely to need to use the manual installation process outlined <a href="http://docs.django-cms.org/en/release-3.3.x/how_to/install.html" rel="nofollow">here</a>.</p>

python django content-management-system django-cms