djangom-mosaico is a django app that contains the mosaico frontend and implements the mosaico backend in python.
-
Enable the Django sites framework
-
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
-
Change the first site in the Django admin to be:
- domain name - localhost:8000
- display name - localhost
-
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.