{ "info": { "author": "Filip Varecha", "author_email": "xaralis@centrum.cz", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: POSIX", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 2.5", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Topic :: Internet :: WWW/HTTP :: Dynamic Content", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "django-versioned-static\n------------------------\n\nThis little apps helps to manage your staticfiles when you need to minify\nthem for production use. Moreover, it is capable of versioning the assets\nso that whenever you need to alter the static files, users won't be given\nold file from the browser cache.\n\nInstallation\n=============\n\nStandard Django way::\n \n pip install django-versioned-static\n \nAdd to your ``INSTALLED_APPS``::\n\n INSTALLED_APPS = (\n ..\n ..,\n 'versioned_static',\n ...\n )\n \nConfigure the assets themselves::\n\n STATICS_ASSETS = {\n 'css': {\n 'css/mycoolproject.css': {\n 'media': ('screen', 'projection', 'tv'),\n 'files': ('css/jquery-ui-1.8.18.custom.css', 'css/style.css',),\n 'version': 1\n },\n 'css/print.css': {\n 'media': ('print',),\n 'files': ('css/print.css',),\n 'version': 1\n }\n },\n 'js': {\n 'js/mycoolproject.js': {\n 'files': ('js/jquery-1.7.1.min.js',\n 'js/main.js'),\n 'version': 1\n }\n }\n }\n\nDone!\n\nUsage in templates\n==================\n\nVery simple. Use the ``asset`` template tag. Give it the static type (css or js)\nand the base css alias. It will generate all the necessary HTML for you directly:: \n\n {% load versioned_static_tags %}\n {% asset \"css\" \"css/mycoolproject.css\" %}\n {% asset \"css\" \"css/print.css\" %}\n {% asset \"js\" \"js/mycoolproject.js\" %}\n \nIt takes your settings in the account. In development (when ``DEBUG = True``),\nyou will be given unversioned and unminified static files. When you turn \nthe debug off, you will be given versioned asset links.\n\n**Result with DEBUG=True**::\n\n \n \n \n \n \n \n \n \n**Result with DEBUG=False**::\n \n \n \n \n \n \n \n \nMinifying the files\n===================\n\nThis app features simple management command which helps you create the minified\nfiles for production. Usage goes like this::\n\n django-admin.py minifystatics [(CSS/JS) ASSET_FILE]\n \nReal example for previous scenario::\n\n django-admin.py minifystatics css css/print.css\n\nIf you want to generate all the files in your app settings, simply run the command\nwithout any arguments::\n\n django-admin.py minifystatics\n \nThe command will look in your ``STATIC_ROOT`` by default (so be sure you\nran collectstatic before the minify command) and use it as the root path.\n\n\nNotes\n=========\n\ndjango-versioned-static internally uses YUI library for minifying the CSS/JS assets.\n", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/xaralis/django-versioned-static", "keywords": null, "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "django-versioned-static", "package_url": "https://pypi.org/project/django-versioned-static/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-versioned-static/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/xaralis/django-versioned-static" }, "release_url": "https://pypi.org/project/django-versioned-static/1.4.3/", "requires_dist": null, "requires_python": null, "summary": "UNKNOWN", "version": "1.4.3" }, "last_serial": 790979, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "654fe8b3d5ba1fb2d266bcde4c7f9dd5", "sha256": "6696d257dcc1e28010ba5de0368df53c13c8151bdf407223c364aeacb366914c" }, "downloads": -1, "filename": "django-versioned-static-1.0.tar.gz", "has_sig": false, "md5_digest": "654fe8b3d5ba1fb2d266bcde4c7f9dd5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5115, "upload_time": "2012-04-09T19:51:49", "url": "https://files.pythonhosted.org/packages/9b/72/b0adfd5d23d1c42fa3e9cfe8569212f8963dc37b5a6b4cf0c7c052edb5f3/django-versioned-static-1.0.tar.gz" } ], "1.1": [ { "comment_text": "", "digests": { "md5": "6badc03c3c7bd20144cbbaaec85a0e8c", "sha256": "3c6b297a2055819ba528546f6d678cac72aa18726fecc424052aefe31673a545" }, "downloads": -1, "filename": "django-versioned-static-1.1.tar.gz", "has_sig": false, "md5_digest": "6badc03c3c7bd20144cbbaaec85a0e8c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4984, "upload_time": "2012-04-09T19:58:30", "url": "https://files.pythonhosted.org/packages/cc/21/e50f3478230a4e21419305762aeccba3ad90b5077e30ba3681448b2f3682/django-versioned-static-1.1.tar.gz" } ], "1.2": [ { "comment_text": "", "digests": { "md5": "629c21b243dbb6eff382dd891eb5d102", "sha256": "1491560e4081589f7aa78530636ef05c647b110e0ad8113e9ac3e4a5eeb062fa" }, "downloads": -1, "filename": "django-versioned-static-1.2.tar.gz", "has_sig": false, "md5_digest": "629c21b243dbb6eff382dd891eb5d102", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5038, "upload_time": "2012-04-12T14:02:57", "url": "https://files.pythonhosted.org/packages/a0/ba/f8d51a64ee9bc32b010d296cfbd45231f4f56df4173336ddd85aceb7b093/django-versioned-static-1.2.tar.gz" } ], "1.3": [ { "comment_text": "", "digests": { "md5": "bd94182f0500dd7a7d46fc4eb76a54b0", "sha256": "e9b6ae81350f903ff7817fad95a2a264c5d0fd1dbebc194a07f4abcfd5842038" }, "downloads": -1, "filename": "django-versioned-static-1.3.tar.gz", "has_sig": false, "md5_digest": "bd94182f0500dd7a7d46fc4eb76a54b0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5047, "upload_time": "2012-04-12T15:04:41", "url": "https://files.pythonhosted.org/packages/de/68/8489b98b3bc772818bc29f2a1fc016c32888731fa3596a74c571f3b835a6/django-versioned-static-1.3.tar.gz" } ], "1.3.1": [ { "comment_text": "", "digests": { "md5": "03cac2f6f4c16ea33671100e69a4f877", "sha256": "a09dc46bd2f4da50d9a2ba083756316c3036373e2a9dc250e5f8c67244932592" }, "downloads": -1, "filename": "django-versioned-static-1.3.1.tar.gz", "has_sig": false, "md5_digest": "03cac2f6f4c16ea33671100e69a4f877", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4059, "upload_time": "2012-04-14T13:05:11", "url": "https://files.pythonhosted.org/packages/7d/0a/7564f0d04f0d4fa12ee7842fce7f5e8c63d2b420b5350db3bd1ef4b5ee4e/django-versioned-static-1.3.1.tar.gz" } ], "1.4.0": [ { "comment_text": "", "digests": { "md5": "630841cb549725ac2ba8ee900f949782", "sha256": "d23a46364ce845e3428e226ff6fae264e222942da0aa7e11c2b3a86459f9068f" }, "downloads": -1, "filename": "django-versioned-static-1.4.0.tar.gz", "has_sig": false, "md5_digest": "630841cb549725ac2ba8ee900f949782", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5174, "upload_time": "2012-06-19T13:46:00", "url": "https://files.pythonhosted.org/packages/bd/37/0d9c6c7f98408c09956a239a48d41c78e8ed43f27f51b7043116c7c5b066/django-versioned-static-1.4.0.tar.gz" } ], "1.4.1": [ { "comment_text": "", "digests": { "md5": "7fe563896f810f144d31632cbfd30c12", "sha256": "2e61886f4167bd502a8761ce5711c6ad3426e4231aff251e00fef3cff676ec52" }, "downloads": -1, "filename": "django-versioned-static-1.4.1.tar.gz", "has_sig": false, "md5_digest": "7fe563896f810f144d31632cbfd30c12", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5175, "upload_time": "2012-06-20T09:46:40", "url": "https://files.pythonhosted.org/packages/52/23/612e57cbcd1da7cff810113d92c2e5ee7ee7b360941fe61073ac12f9a33a/django-versioned-static-1.4.1.tar.gz" } ], "1.4.2": [ { "comment_text": "", "digests": { "md5": "69fc14d646235e210d9808f7553558ff", "sha256": "e79ef630b0f927538032a5096b352fe928b3558a0c724bbf8b61df4a9c816f31" }, "downloads": -1, "filename": "django-versioned-static-1.4.2.tar.gz", "has_sig": false, "md5_digest": "69fc14d646235e210d9808f7553558ff", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5221, "upload_time": "2012-06-26T15:56:32", "url": "https://files.pythonhosted.org/packages/1e/86/229b67df750063309988d0e716ec9fdb217afa8e8666f351cdbad4d56d60/django-versioned-static-1.4.2.tar.gz" } ], "1.4.3": [ { "comment_text": "", "digests": { "md5": "649698ff9263717fb1254a01ed5b2fe5", "sha256": "f940017939c0b83af340a50fbc7fe1aebc1836f3746bc35d8efcbfeb150e3958" }, "downloads": -1, "filename": "django-versioned-static-1.4.3.tar.gz", "has_sig": false, "md5_digest": "649698ff9263717fb1254a01ed5b2fe5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5362, "upload_time": "2012-08-28T11:46:50", "url": "https://files.pythonhosted.org/packages/a3/af/c7c35e2fe02bcea7c4aad237c232ec8e2365eac08919f36be2569664da2a/django-versioned-static-1.4.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "649698ff9263717fb1254a01ed5b2fe5", "sha256": "f940017939c0b83af340a50fbc7fe1aebc1836f3746bc35d8efcbfeb150e3958" }, "downloads": -1, "filename": "django-versioned-static-1.4.3.tar.gz", "has_sig": false, "md5_digest": "649698ff9263717fb1254a01ed5b2fe5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5362, "upload_time": "2012-08-28T11:46:50", "url": "https://files.pythonhosted.org/packages/a3/af/c7c35e2fe02bcea7c4aad237c232ec8e2365eac08919f36be2569664da2a/django-versioned-static-1.4.3.tar.gz" } ] }