Skip to content
This repository has been archived by the owner on Oct 19, 2023. It is now read-only.

Plugin for django CMS that allows you to add SVG images on your site.

License

Notifications You must be signed in to change notification settings

pablo-pinargote/djangocms_svgimage

Repository files navigation

djangocms SVG Image plugin

Since djangocms_picture pluging does not allow us to use SVG files, we code this small plugin. It is inteded to be very simple but useful to insert SVG images on our pages as need it.

Setup

You can install the plugin by:

  1. Executing the following command:
pip install git+https://github.com/pablo-pinargote/djangocms_svgimage
  1. Adding the plugin to your CMS INSTALLED_APPS settings variable.
INSTALLED_APPS = [
    ...,
    'djangocms_svgimage',
]
  1. Executing plugin migrations to create the corresponding model:
python manage.py makemigrations djangocms_svgimage
python manage.py migrate djangocms_svgimage

Using the plugin

Using the plugin is very straightforward, we just select it from the plugin's list, select the file and enter the image width and height parameters accordingly.

About

Plugin for django CMS that allows you to add SVG images on your site.

Topics

Resources

License

Stars

Watchers

Forks