Django Dyncss 0.1.1 | Coderz Repository

django-dyncss 0.1.1

Last updated:

0 purchases

django-dyncss 0.1.1 Image
django-dyncss 0.1.1 Images

Free

Languages

Categories

Add to Cart

Description:

djangodyncss 0.1.1

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

Code

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product: (if this is empty don't purchase this product)

Customer Reviews

There are no reviews.