Quick start
- Get the dependencies:
- Add the following entries in your settings.py:
- Add inline_media, sorl.thumbnail and tagging to INSTALLED_APPS.
- Add THUMBNAIL_BACKEND = "inline_media.sorl_backends.AutoFormatBackend"
- Add THUMBNAIL_FORMAT = "JPEG"
- Create a model with a field of type TextFieldWithInlines.
- Create an admin class for that model by inheriting from both inline_media.admin.AdminTextFieldWithInlinesMixin and Django’s admin.ModelAdmin.
- Optionally, customise inline_media templates by copying them from inline_media/templates/inline_media/ to your inline_media/ folder in your templates directory.
- Run manage.py commands: syncdb, collectstatic, runserver.
- Create two InlineType objects, one for the Picture model and one for the PictureSet model.
- Upload some pictures and create some picture sets.
- Add content to the model using the field TextFieldWithInlines and see that you can insert inline content in the textarea. It will be rendered in the position indicated by the CSS class selected in the dropdown box.
- Hit your App’s URL!