Skip to content
This repository has been archived by the owner on Nov 29, 2021. It is now read-only.

Latest commit

 

History

History
35 lines (27 loc) · 1.38 KB

README.md

File metadata and controls

35 lines (27 loc) · 1.38 KB

django-mosaico

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

Quick start

  1. Enable the Django sites framework

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

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

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

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

  6. Login to the django admin

  7. Change the first site in the Django admin to be:

    • domain name - localhost:8000
    • display name - localhost
  8. Go to the Django admin here: http://127.0.0.1:8000/admin/mosaico/template/

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

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