List of template files coming with Django-inline-media.
Django-inline-media will try to use a template matching the following pattern:
inline_media/<app-label>.<model>.<size>.html Being <size> one of the following:
Note: Actual size values can be customize through the setting INLINE_MEDIA_CUSTOM_SIZES. See it the Settings.
When django-inline-media has to render an element with a CSS class like inline_medium_left, it will first look for the template:
And if it doesn’t exist it will use the default template:
If the django-inline-media models, Picture and PictureSet, are not suitable for your project or need another ones, just create your own and bind them to the app.
Once you have your model (say MyPicture), declare it the setting INLINE_MEDIA_TYPES. Your model will then show up in the dropdown list of inline types at the bottom of your TextFieldWithInlines fields (like the body field in the Article model of the demo).
Then create templates to render your own media content. Name your templates after the correspoding app_label for your model:
- inline_media/<my_app_label>.mypicture.<size>.html
- inline_media/<my_app_label>.mypicture.default.html