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
-
Add "jsonify" and "mosaico" to your
INSTALLED_APPS
setting like this:INSTALLED_APPS = [ ... 'jsonify', 'mosaico', ]
-
Include the mosaico URLconf in your project urls.py like this:
url(r'^mosaico/', include('mosaico.urls')),
-
Setup
MEDIA_ROOT
andMEDIA_URL
-
Run
python manage.py migrate
to create the mosaico models. -
Login to the django admin
-
Go to the Django admin here: http://127.0.0.1:8000/admin/mosaico/template/
-
Create a new template in mosaico by clicking the
Add Template from Mosaico
button. -
When you're done, click "Save to Server". Now that template should be listed in the Django admin under templates.