{ "info": { "author": "Ch Ray", "author_email": "ray@jhink.com", "bugtrack_url": null, "classifiers": [ "Environment :: Other Environment", "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Communications :: Email", "Topic :: Text Processing :: Markup :: HTML" ], "description": "[](https://travis-ci.org/wejhink/django-mailcss)\n\n\n## About\nSending a mail with CSS for is currently a surprisingly large hassle.\nThis library aims to make it a breeze in the Django template language.\n\n\n## Usage\n\n#### Step 1: Dependencies\n\n- BeautifulSoup\n- cssutils\n- Python 2.7+,3.4+\n- Django 1.11+\n\n\n#### Step 2: Install django_mailcss\n\nAdd ```django_mailcss``` to your ```settings.py```:\n\n```python\nINSTALLED_APPS = (\n 'django.contrib.auth',\n 'django.contrib.webdesign',\n 'django.contrib.contenttypes',\n '...',\n '...',\n '...',\n 'django_mailcss')\n```\n\n#### Step 3: Use the templatetag\n\n1. Place your CSS file somewhere staticfiles can find it\n2. Create your template:\n\n```html\n{% load mailcss %}\n{% mailcss \"css/extra-padding.css\" %}\n \n
\n