Skip to main content

No project description provided

Project description

Django app for in-lining CSS. This project was initially based on premailer.


Just include django_inlinify in your INSTALLED_APPS and

from django_inlinify.inlinify import Inlinify

html = '<html>
        <style type="text/css">
        p * { color: blue }

p = Inlinify()


Override the following in your Django settings according to your needs. You can check their default values on django_inlinify/

# the default cache backend. Make sure it exists in `CACHES`

# CSS parser cache key prefix

# CSS parser cache key TTL

# CSS attribute to HTML attribute mapping

# CSS loader cache key prefix

# CSS loader cache key TTL

Running tests

DJANGO_SETTINGS_MODULE="django_inlinify.test_settings" python test



Project details

Download files

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

Files for django-inlinify, version 0.0.13
Filename, size File type Python version Upload date Hashes
Filename, size django_inlinify-0.0.13-py2-none-any.whl (9.3 kB) File type Wheel Python version py2 Upload date Hashes View
Filename, size django-inlinify-0.0.13.tar.gz (11.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page