Metadata-Version: 1.1
Name: django-kp-static-version
Version: 0.1
Summary: kp_static_version is a simple Django app to add a version number to static files and force browsers to use the latest version of the file.
Home-page: https://github.com/KernelPan1k/django-kp-static-version
Author: kernel-panik
Author-email: UNKNOWN
License: GPLv3
Description: =================
        kp_static_version
        =================
        
        kp_static_version is a simple Django app to add
        a version number to static files and force browsers to use the latest version of the file.
        
        
        Quick start
        -----------
        
        1. Install django-kp-static-version::
        
            pip install django-kp-static-version
        
        2. Add "polls" to your INSTALLED_APPS setting like this::
        
            INSTALLED_APPS = [
                ...
                'kp_static_version',
            ]
        
        3. Load templatetags into your template::
        
            {% load kp_static %}
        
        
        4. Load your static file::
        
            <script src="{% vstatic "js/sample.js" %}"></script>
        
        If in your settings.py the variable **DEBUG = True** then a *random number* will be generated
        for development otherwise the value **KP_STATIC_VERSION** will be used::
        
            KP_STATIC_VERSION = "0.5"
        
        The result::
        
            <script src="/static/js/sample.js?v=0.5"></script>
        
        
Platform: UNKNOWN
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
