Skip to main content

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

Resources

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-dyncss-0.1.1.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_dyncss-0.1.1-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

Details for the file django-dyncss-0.1.1.tar.gz.

File metadata

  • Download URL: django-dyncss-0.1.1.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for django-dyncss-0.1.1.tar.gz
Algorithm Hash digest
SHA256 306a108746cbd09edbddd567d9a55b4a16631c802f0924890b8ee3ef8e9715f6
MD5 b681707980ae3cc916334b521fc73735
BLAKE2b-256 410df3a0d98aa919b5918d7eeeefbb479f39c6cfca9eb126875e3a78d1b6cb77

See more details on using hashes here.

File details

Details for the file django_dyncss-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: django_dyncss-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 11.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for django_dyncss-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 452eb3b9eb3f6930b3d43c80abd55b121269716e525bc1e05fbd65a8590da635
MD5 5e4bb2d8f5cca569eaa8f709c4d9b179
BLAKE2b-256 29747372077c9e1a89b03df583f709e7d1913c5e21139f30867122e9414d528d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page