{ "info": { "author": "Isaac Bythewood", "author_email": "isaac@bythewood.me", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python" ], "description": "# django-fresh\n\ndjango-fresh will auto-refresh your browser whenever you update to any of the\nfiles in your project. Very useful for development, not intended for\nproduction!\n\n\n## How It Works\n\ndjango-fresh injects a small piece of JavaScript into each of your HTML pages\nwhich will then make the page poll your Django app checking if files were\nchanged. If django-fresh sees that you modified a file it will tell the next\npolling to refresh the page.\n\n\n## Setup\n\n 1. Install fresh by running `pip install django-fresh`.\n 2. In `settings.py` add `fresh` to `INSTALLED_APPS`.\n 3. In `settings.py` add `fresh.middleware.FreshMiddleware` to `MIDDLEWARE_CLASSES`.\n 4. In `settings.py` have `SITE_ROOT` variable set to the absolute path of your projects files.\n 5. In `urls.py` add `url(r'', include('fresh.urls'))` to `urlpatterns`.\n\n### `SITE_ROOT` Example\n\nThis will dynamically grab the location of your settings file and make it your\nsite root, django-fresh will recursively watch everything in the settings file's\nfolder.\n\n SITE_ROOT = os.path.dirname(os.path.abspath(__file__))\n\n**Note:** Be sure you `import os` before using the above code or you'll get an\nerror!\n\n\n## Optional Custom Settings\n\nYou have two customizable choices:\n\n 1. `FRESH_ACCEPTED_EXTENSIONS` is an array that is checked when files are updated, if an extension is not in the list it won't trigger a refresh.\n 2. `FRESH_IGNORED_PAGES` is an array that is checked before injecting the refresh code, if page in list it won't have the code injected. \n\n### `FRESH_ACCEPTED_EXTENSIONS` Defaults\n\n FRESH_ACCEPTED_EXTENSIONS = [\n '.py',\n '.html',\n '.js',\n '.css',\n ]\n\n### `FRESH_IGNORED_PAGES` Defaults\n\n FRESH_IGNORED_PAGES = [\n '/admin/',\n '/admin_keywords_submit/',\n ]\n\n\n## Notice\n\ndjango-fresh checks to see if `debug` is `True`, if it is `False` it doesn't do\nanything to prevent you from accidently including it in production.\n\n\n## License (Simplified BSD)\n\nCopyright (c) Isaac Bythewood \nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n1. Redistributions of source code must retain the above copyright notice,\n this list of conditions and the following disclaimer.\n\n2. Redistributions in binary form must reproduce the above copyright notice,\n this list of conditions and the following disclaimer in the documentation\n and/or other materials provided with the distribution.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\nANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\nWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR\nANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\nLOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND\nON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\nSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.", "description_content_type": null, "docs_url": null, "download_url": "http://github.com/overshard/django-fresh/downloads", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/overshard/django-fresh", "keywords": null, "license": "Simplified BSD", "maintainer": null, "maintainer_email": null, "name": "django-fresh", "package_url": "https://pypi.org/project/django-fresh/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-fresh/", "project_urls": { "Download": "http://github.com/overshard/django-fresh/downloads", "Homepage": "http://github.com/overshard/django-fresh" }, "release_url": "https://pypi.org/project/django-fresh/1.0.5/", "requires_dist": null, "requires_python": null, "summary": "Auto-refresh your browser when files in your project change.", "version": "1.0.5" }, "last_serial": 588138, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "6a2eb3a0065a24c1a1ebfc2f656dd86e", "sha256": "cc398b377e2737ebba61d2a01fef5cf746a4c61a0445bbfa15716e01f10b688e" }, "downloads": -1, "filename": "django-fresh-1.0.0.tar.gz", "has_sig": false, "md5_digest": "6a2eb3a0065a24c1a1ebfc2f656dd86e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3574, "upload_time": "2012-12-04T02:43:19", "url": "https://files.pythonhosted.org/packages/53/bd/2562c5a0b7501c0a3175a0ee8df806e11525abc4d50709a67d1cecdfbfc4/django-fresh-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "9c39313cdc6990822deb48f56521c639", "sha256": "af3ef558c30797b4fce5b54bd2e7e0e082b501435203ea070adfb4ee55e268b6" }, "downloads": -1, "filename": "django-fresh-1.0.1.tar.gz", "has_sig": false, "md5_digest": "9c39313cdc6990822deb48f56521c639", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3649, "upload_time": "2012-12-04T18:24:39", "url": "https://files.pythonhosted.org/packages/42/73/94c4fa4052ac9af792853b73ca928d5445ee860337ef4040c6167b54356b/django-fresh-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "d364632d7c1d2c62678ad5b3e0b55251", "sha256": "5184c48c8a6d750befcbcae75877cc7079c783e56f2f4973420c1bd9ad7e593c" }, "downloads": -1, "filename": "django-fresh-1.0.2.tar.gz", "has_sig": false, "md5_digest": "d364632d7c1d2c62678ad5b3e0b55251", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4018, "upload_time": "2012-12-04T19:00:03", "url": "https://files.pythonhosted.org/packages/5e/b5/38a9c8d59c2defcf615725036a99b26b5828151b7162a1e7fb3b8d473cf2/django-fresh-1.0.2.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "8cd9829a99b0ae3ec1bcfa27ef0d725e", "sha256": "cbe04e160a1c9dec839017904686cc94e2e63d3ac147929e08229f5fb6fa1b6b" }, "downloads": -1, "filename": "django-fresh-1.0.3.tar.gz", "has_sig": false, "md5_digest": "8cd9829a99b0ae3ec1bcfa27ef0d725e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4400, "upload_time": "2012-12-04T19:48:48", "url": "https://files.pythonhosted.org/packages/34/c6/657d6a94bf0e93709bf0e019b5fc34e568eceaa1c50fa8ab90ccfd0dedd5/django-fresh-1.0.3.tar.gz" } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "2b88a865bfebb62553ca48aca5162f40", "sha256": "c3dced6a58b0412e541dbae8fef31ac2ece513b0821b4da3f183e5af69d913a7" }, "downloads": -1, "filename": "django-fresh-1.0.4.tar.gz", "has_sig": false, "md5_digest": "2b88a865bfebb62553ca48aca5162f40", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4400, "upload_time": "2012-12-04T19:52:30", "url": "https://files.pythonhosted.org/packages/2b/99/da8ded2d6848fb23d24692fedf2368329e12ac74e5543ed0cd1d203a920e/django-fresh-1.0.4.tar.gz" } ], "1.0.5": [ { "comment_text": "", "digests": { "md5": "7e471ab8b84cb6421862bc036254d699", "sha256": "e05ab343c111440075df2f949b71e1774fdaddc2733a3520b1b7989915ffc211" }, "downloads": -1, "filename": "django-fresh-1.0.5.tar.gz", "has_sig": false, "md5_digest": "7e471ab8b84cb6421862bc036254d699", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4372, "upload_time": "2013-03-15T17:53:36", "url": "https://files.pythonhosted.org/packages/61/bf/44166e773416ce64ac3c5862a9655319b8c3ae441c67b58d7d279e6fbe7b/django-fresh-1.0.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7e471ab8b84cb6421862bc036254d699", "sha256": "e05ab343c111440075df2f949b71e1774fdaddc2733a3520b1b7989915ffc211" }, "downloads": -1, "filename": "django-fresh-1.0.5.tar.gz", "has_sig": false, "md5_digest": "7e471ab8b84cb6421862bc036254d699", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4372, "upload_time": "2013-03-15T17:53:36", "url": "https://files.pythonhosted.org/packages/61/bf/44166e773416ce64ac3c5862a9655319b8c3ae441c67b58d7d279e6fbe7b/django-fresh-1.0.5.tar.gz" } ] }