{ "info": { "author": "ZuluPro (Anthony MONTHE)", "author_email": "anthony.monthe@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Console", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3" ], "description": "=================\nDjango Static LoR\n=================\n\nLoR as \"Local or Remote\" is a useful tool for manage static files between\ntesting and production.\n\nInstall\n=======\n\nInstall the package on your system: ::\n\n pip install django-static-lor\n\nMake the following things in your ``settings.py``:\n\n* Add ``lor`` app at the beginning of your ``INSTALLED_APPS``\n* Add ``LOR_USE_LOCAL_URLS`` for define if you want local or remote URLs\n (Better is simply ``LOR_USE_LOCAL_URLS = DEBUG``\n* Add ``LOR_STATIC_DIR`` for define where is the app's static directory\n* Add ``LOR_STATIC_DIR`` in ``STATICFILES_DIRS`` if you want to serve it when ``DEBUG == False``\n* Add you matches in ``LOR_FILES_URLS``\n\nYour settings will look like something like this: ::\n\n INSTALLED_APPS = (\n 'lor',\n ...\n )\n LOR_USE_LOCAL_URLS = False\n LOR_STATIC_DIR = '/my/lor/static/dir/'\n STATICFILES_DIRS = (\n ...\n LOR_STATIC_DIR,\n )\n\n LOR_FILES_URLS = {\n 'jquery': ('js/jquery.js',\n 'https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js')\n }\n\nDone!\n\nUsage\n=====\n\nIn templates\n------------\n\n::\n\n {% load lor %}\n My jQuery URL: {% lor_url 'jquery' %}\n \n \nCollect remote files\n--------------------\n\n::\n\n ./manage.py wget\n\nThis will download all files in ``LOR_FILES_URLS`` and put them in ``LOR_USE_LOCAL_URLS``.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/ZuluPro/django-static-lor", "keywords": null, "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "django-static-lor", "package_url": "https://pypi.org/project/django-static-lor/", "platform": "any", "project_url": "https://pypi.org/project/django-static-lor/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/ZuluPro/django-static-lor" }, "release_url": "https://pypi.org/project/django-static-lor/0.1.0/", "requires_dist": null, "requires_python": null, "summary": "LoR as 'Local or Remote' is a useful tool for manage static\n files between testing and production.", "version": "0.1.0" }, "last_serial": 1603271, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "8c1c1724aec331bac9e52a14820c526e", "sha256": "6a2f4499a94663dfeb7583240aa747c45faeef5683a1f6f56e5827eac734fca8" }, "downloads": -1, "filename": "django-static-lor-0.1.0.tar.gz", "has_sig": false, "md5_digest": "8c1c1724aec331bac9e52a14820c526e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6523, "upload_time": "2015-06-23T14:04:44", "url": "https://files.pythonhosted.org/packages/6b/d2/2c0b11fdc55d80f5a428fd2cd2cf5a0b2217bd54497f13cbf3153d688498/django-static-lor-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8c1c1724aec331bac9e52a14820c526e", "sha256": "6a2f4499a94663dfeb7583240aa747c45faeef5683a1f6f56e5827eac734fca8" }, "downloads": -1, "filename": "django-static-lor-0.1.0.tar.gz", "has_sig": false, "md5_digest": "8c1c1724aec331bac9e52a14820c526e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6523, "upload_time": "2015-06-23T14:04:44", "url": "https://files.pythonhosted.org/packages/6b/d2/2c0b11fdc55d80f5a428fd2cd2cf5a0b2217bd54497f13cbf3153d688498/django-static-lor-0.1.0.tar.gz" } ] }