/django-mosaico

A django app that contains the mosaico frontend and implements the mosaico backend

Primary LanguageHTMLGNU General Public License v3.0GPL-3.0

django-mosaico

django-mosaico is a django app that contains the mosaico frontend and implements the mosaico backend in python.

This is a fork from tubaman/django-mosaico that contains some fixes and improvements to make this work on newer django versions.

NOTE: It uses django's postgres JSONField and it's not backwards compatible to tubaman's original project as the whole migration history was scrapped.

Quick start

  1. Add "jsonify" and "mosaico" to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = [
        ...
        'jsonify',
        'mosaico',
    ]
  2. Include the mosaico URLconf in your project urls.py like this:

    url(r'^mosaico/', include('mosaico.urls')),
  3. Setup MEDIA_ROOT and MEDIA_URL

  4. Run python manage.py migrate to create the mosaico models.

  5. Login to the django admin

  6. Go to the Django admin here: http://127.0.0.1:8000/admin/mosaico/template/

  7. Create a new template in mosaico by clicking the Add Template from Mosaico button.

  8. When you're done, click "Save to Server". Now that template should be listed in the Django admin under templates.