Metadata-Version: 2.1
Name: django-critical-css
Version: 0.0.1
Summary: django-critical-css aims to speed up webpage rendering by saving critical css in db.
Home-page: https://github.com/lenarother/django-critical-css
Author: Magdalena Rother
Author-email: rother.magdalena@gmail.com
License: UNKNOWN
Project-URL: Bug Reports, https://github.com/lenarother/django-critical-css/issues
Project-URL: Source, https://github.com/lenarother/django-critical-css
Keywords: django
Platform: UNKNOWN
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Requires-Dist: django-rq
Requires-Dist: django-inline-static

django-critical-css
===================

.. image:: https://img.shields.io/pypi/v/django-critical-css.svg
   :target: https://pypi.org/project/django-critical-css/
   :alt: Latest Version

.. image:: https://codecov.io/gh/lenarother/django-critical-css/branch/master/graph/badge.svg
   :target: https://codecov.io/gh/lenarother/django-critical-css
   :alt: Coverage Status

.. image:: https://readthedocs.org/projects/django-critical-css/badge/?version=latest
   :target: https://django-critical-css.readthedocs.io/en/stable/?badge=latest
   :alt: Documentation Status

.. image:: https://travis-ci.org/lenarother/django-critical-css.svg?branch=master
   :target: https://travis-ci.org/lenarother/django-critical-css


django-critical-css speeds up webpage rendering by saving
 `critical css <https://www.phpied.com/css-and-the-critical-path/>`_ in a database.


Features
--------

* `critical_css` templatetag to inline critical css from the database.
* `empty_critical_css` management command.
* signal for emptying critical css upon page publication when using django-cms.


Requirements
------------

* Python 3 only
* at least Django 1.11
* `requests <https://github.com/requests/requests/>`_
* `django-rq <https://github.com/rq/django-rq/>`_
* `django-inline-static <https://github.com/moccu/django-inline-static/>`_


Prepare for development
-----------------------

A Python 3.6 interpreter is required in addition to pipenv.

.. code-block:: shell

    $ pipenv install --python 3.6 --dev
    $ pipenv shell
    $ pip install -e .


Now you're ready to run the tests:

.. code-block:: shell

    $ pipenv run py.test


Resources
---------

* `Documentation <https://django-critical-css.readthedocs.io>`_
* `Bug Tracker <https://github.com/lenarother/django-critical-css/issues>`_
* `Code <https://github.com/lenarother/django-critical-css/>`_


