django-dyncss is an extension to Django allowing to save css assets in the DB
Project description
Django DynCSS is an extension to Django which adds the possibility to store css files in the Django DB with simple versioning.
Installation
Install the latest version from pypi.python.org:
pip install django-dyncss
Install the development version by cloning the source from github.com:
pip install git+https://github.com/jcolot/django-dyncss.git
Configuration
Add the package to your INSTALLED_APPS:
INSTALLED_APPS = ( ... 'dyncss', )
Add the url path in your main urls.py.
urlpatterns = [ ... path('dyncss/', include('dyncss.urls')), ]
Usage
Create a CSS File from the Django Admin
Add a link to that file in your Django template
<link rel="stylesheet" href="dyncss/example.css">
You can also use the template tag
{% load dyncss %} {% dyncss 'example.css' inline=True %}
The parameter inline when True allows to render the file inline within <style> tags
License
Released under MIT License
Copyright (c) 2021 Julien Colot <julien.colot@gmail.com>
Resources
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for django_dyncss-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 452eb3b9eb3f6930b3d43c80abd55b121269716e525bc1e05fbd65a8590da635 |
|
MD5 | 5e4bb2d8f5cca569eaa8f709c4d9b179 |
|
BLAKE2b-256 | 29747372077c9e1a89b03df583f709e7d1913c5e21139f30867122e9414d528d |