Metadata-Version: 2.1
Name: django-static-echarts
Version: 4.0.4.1
Summary: Django application contain echarts static files.
Home-page: https://github.com/appstore-zencore/django-static-echarts
Author: zencore
Author-email: appstore@zencore.cn
License: MIT
Keywords: django-static-echarts
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Requires: django
License-File: LICENSE
Requires-Dist: django

django-static-echarts
=====================


Django application contain echarts static files


Install
-------

::

    pip install django-static-echarts


Settings
--------

::

    INSTALLED_APPS = [
        ...
        "django_static_echarts",
        ...
    ]

Use static resource
-------------------

::

    {% load staticfiles %}

    {% block script %}
        <script src="{% static "echarts/echarts.min.js" %}"></script>
        <script src="{% static "echarts/theme/vintage.js" %}"></script>
        <script src="{% static "echarts/map/js/china.js" %}"></script>
    {% endblock %}
