django-inline-svg 
A simple plugin that adds an svg template tag to inline your SVGs in your Django templates.
Installation
Install it from pypi.
$ pip install django-inline-svg
Add svg to your INSTALLED_APPS.
INSTALLED_APPS = (
...
'svg',
...
)
Usage
Store your SVGs in folder named svg at the root of any of your static file directories.
my_app |-- static | |-- svg | |-- logo.svg | |-- check.svg | |-- cross.svg
Use the svg template tag.
{% load svg %}
<h1 class="logo">{% svg 'logo' %}</h1>
You can set SVG_DIRS to control where to look for your svgs.
# settings.py
SVG_DIRS=[
os.path.join(BASE_DIR, 'my-svgs')
]
Support
The tests are run against Django 1.8, 1.9, 1.10 on Python 2.7, 3.3, 3.4, 3.5.
License
MIT
Metadata
Release files for django-inline-svg 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-inline-svg-0.1.1.tar.gz | 3.4 kB | Without provenance | Details for django-inline-svg-0.1.1.tar.gz |
Release files / django-inline-svg-0.1.1.tar.gz
| Download URL | django-inline-svg-0.1.1.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9a908eb7f2ed23317f896be6e0c355ec488b1944e6f4d2d829a74d1d4e5fb918
|
|
BLAKE2b-256 checksum How to use checksums |
a1466bf3b74ce8a47e6cc413f4f5cbb08af2eb831387c2136b3b750c8c24bb0e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-inline-svg 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.