{ "info": { "author": "Marc Hoersken", "author_email": "info@marc-hoersken.de", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP :: Dynamic Content", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "[Django-Live-Templates](https://github.com/mback2k/django-live-templates) is\nan extension to [Django](https://www.djangoproject.com/) and\n[Channels](https://channels.readthedocs.io/) which adds\nsupport for live updating Django template snippets on model changes.\n\nThis project is based upon and a partial reimplementation to Channels of\n[SwampDragon-live](https://github.com/mback2k/swampdragon-live) which was build\nusing [SwampDragon](https://github.com/hagsteel/swampdragon)\nwith SwampDragon-auth and django-redis.\n\nInstallation\n------------\nInstall the latest version from pypi.python.org:\n\n pip install django-live-templates\n\nInstall the development version by cloning the source from github.com:\n\n pip install git+https://github.com/mback2k/django-live-templates.git\n\nConfiguration\n-------------\nAdd the package to your `INSTALLED_APPS`:\n\n INSTALLED_APPS += (\n 'channels',\n 'django_live_templates',\n )\n\nExample\n-------\nMake sure to use django-redis as a Cache backend named 'django-live-templates' or 'default':\n\n CACHES = {\n 'django-live-templates': {\n 'BACKEND': 'django_redis.cache.RedisCache',\n 'LOCATION': 'redis://localhost:6379/0',\n 'OPTIONS': {\n 'CLIENT_CLASS': 'django_redis.client.DefaultClient',\n }\n }\n }\n\nLoad the required JavaScript template-tags within your Django template:\n\n {% load django_live_template %}\n\nAdd the required JavaScript to your Django template:\n\n \n\nUse the include_live template-tag instead of the default include template-tag,\nwith rows being a Django database QuerySet to listen for added, changed, deleted instances:\n\n {% include_live 'includes/table_body.html' rows=rows perms=perms %}\n\nUse the include_live template-tag instead of the default include template-tag,\nwith row being a single Django database Model instance to listen for changes:\n\n {% include_live 'includes/row_cols.html' row=row perms=perms %}\n\nUse the django_live_template variable within the included template to add the\nrequired classes to the root-tag of this template, e.g. the first tag-node:\n\n ...\n\nYou can check if your template is being live rendered by a content pusher by\nusing the context variable `is_django_live_template` like this:\n\n {% if is_django_live_template %}\n \n {% endif %}\n\nA real-world example can be found in the Django project WebGCal:\n* https://github.com/mback2k/django-webgcal/blob/master/webgcal/apps/webgcal/templates/show_dashboard.html\n* https://github.com/mback2k/django-webgcal/tree/master/webgcal/apps/webgcal/templates/includes\n\nLicense\n-------\n* Released under MIT License\n* Copyright (c) 2015-2019 Marc Hoersken \n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/mback2k/django-live-templates", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "django-live-templates", "package_url": "https://pypi.org/project/django-live-templates/", "platform": "", "project_url": "https://pypi.org/project/django-live-templates/", "project_urls": { "Homepage": "https://github.com/mback2k/django-live-templates" }, "release_url": "https://pypi.org/project/django-live-templates/0.1a0/", "requires_dist": [ "channels (>=2.3.0)", "django-redis (>=4.10.0)" ], "requires_python": "", "summary": "Django-Live-Templates is an extension to Django and Channels which adds support for live updating Django template snippets on model changes.", "version": "0.1a0", "yanked": false, "yanked_reason": null }, "last_serial": 6035319, "releases": { "0.0.1a0": [ { "comment_text": "", "digests": { "md5": "d53ccbc9e2d474987ca39d10558637ea", "sha256": "fa53a610eaae9dd75a248d07209764ab801c57d65bf1187a848e79d9b09b20d6" }, "downloads": -1, "filename": "django_live_templates-0.0.1a0-py3-none-any.whl", "has_sig": false, "md5_digest": "d53ccbc9e2d474987ca39d10558637ea", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 10032, "upload_time": "2019-01-14T19:54:59", "upload_time_iso_8601": "2019-01-14T19:54:59.519138Z", "url": "https://files.pythonhosted.org/packages/25/cf/dea5ae66b7980987721adf6ca576269725bc3ba4dde8b15505396f8817f5/django_live_templates-0.0.1a0-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "9091a3ce56b8c54fbfe8ad5ee408740a", "sha256": "e8b8fff592657893b69a6e152ac996e8b0362810ecb56caba1acdbe67a39a639" }, "downloads": -1, "filename": "django-live-templates-0.0.1a0.tar.gz", "has_sig": false, "md5_digest": "9091a3ce56b8c54fbfe8ad5ee408740a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7870, "upload_time": "2019-01-14T19:55:01", "upload_time_iso_8601": "2019-01-14T19:55:01.552003Z", "url": "https://files.pythonhosted.org/packages/45/19/16d80a5b2b6fe41f5a5a524b7c4fb898ef13cf5b018864d8147a61cfcff4/django-live-templates-0.0.1a0.tar.gz", "yanked": false, "yanked_reason": null } ], "0.0.2a0": [ { "comment_text": "", "digests": { "md5": "12dd61571bcecf041f83afb930a2b1bf", "sha256": "efd5b298c1b454798a74b990ac0b67835c06878e8ea38aeb92a2ae3cfd72e7b6" }, "downloads": -1, "filename": "django_live_templates-0.0.2a0-py3-none-any.whl", "has_sig": false, "md5_digest": "12dd61571bcecf041f83afb930a2b1bf", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 10068, "upload_time": "2019-01-20T16:54:38", "upload_time_iso_8601": "2019-01-20T16:54:38.323124Z", "url": "https://files.pythonhosted.org/packages/c4/ba/7644b6e2a935753a999f58abd89ac9af388457992782562558098d4cd07f/django_live_templates-0.0.2a0-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "dbbc80bf979ab26b12d7c4f094fd617d", "sha256": "6f034c0febc7453e7a037e6a368275fd5d7962f7991363191debf38124db4ed0" }, "downloads": -1, "filename": "django-live-templates-0.0.2a0.tar.gz", "has_sig": false, "md5_digest": "dbbc80bf979ab26b12d7c4f094fd617d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7909, "upload_time": "2019-01-20T16:54:40", "upload_time_iso_8601": "2019-01-20T16:54:40.610859Z", "url": "https://files.pythonhosted.org/packages/3b/3f/9ccad38b312b95cbdeb3fd1cae3315d766726f8edb57e0ff8d3de4574863/django-live-templates-0.0.2a0.tar.gz", "yanked": false, "yanked_reason": null } ], "0.0.3a0": [ { "comment_text": "", "digests": { "md5": "7a2f449ce085de7f67af4e078f0da5c4", "sha256": "8958a2c2208519e3e6db98b953ed87b597348d45c4efda245a646833a3d7dcf5" }, "downloads": -1, "filename": "django_live_templates-0.0.3a0-py3-none-any.whl", "has_sig": true, "md5_digest": "7a2f449ce085de7f67af4e078f0da5c4", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 10737, "upload_time": "2019-01-26T16:55:42", "upload_time_iso_8601": "2019-01-26T16:55:42.024801Z", "url": "https://files.pythonhosted.org/packages/1f/19/ccfbccc7a3874e309fd7b82068b0e286aeeca2b546d1bf1475b5446c7a6a/django_live_templates-0.0.3a0-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "4c51c3582274603e21a835fedf07d831", "sha256": "96e28e395b972a8ac275956d5f61c4dc0deeb3882e268a35742e04136e8afcea" }, "downloads": -1, "filename": "django-live-templates-0.0.3a0.tar.gz", "has_sig": true, "md5_digest": "4c51c3582274603e21a835fedf07d831", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8349, "upload_time": "2019-01-26T16:55:46", "upload_time_iso_8601": "2019-01-26T16:55:46.880446Z", "url": "https://files.pythonhosted.org/packages/e5/25/36271c34d8c79cbb02918f6d00c1311433800403216ff2e7bfa0a49e1fa5/django-live-templates-0.0.3a0.tar.gz", "yanked": false, "yanked_reason": null } ], "0.1a0": [ { "comment_text": "", "digests": { "md5": "22dbb3f062256c1ad9eff7f81384e256", "sha256": "68c4a57431b6cce60b84a28b3f6f46629ff058e256f9aa4518d759b7abce98b3" }, "downloads": -1, "filename": "django_live_templates-0.1a0-py3-none-any.whl", "has_sig": true, "md5_digest": "22dbb3f062256c1ad9eff7f81384e256", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 10435, "upload_time": "2019-10-26T22:30:26", "upload_time_iso_8601": "2019-10-26T22:30:26.587625Z", "url": "https://files.pythonhosted.org/packages/6e/55/286abb5e0fe8193a0c4185e061fb0e1ce1a04615d71c3d159bb06781d226/django_live_templates-0.1a0-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "c24214028b39086a1fcfd9780389db59", "sha256": "91db2247c26175f0b4ca2bc8a54a798ec296e8ae365064180d04ffd318a24f1d" }, "downloads": -1, "filename": "django-live-templates-0.1a0.tar.gz", "has_sig": true, "md5_digest": "c24214028b39086a1fcfd9780389db59", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8402, "upload_time": "2019-10-26T22:30:32", "upload_time_iso_8601": "2019-10-26T22:30:32.637198Z", "url": "https://files.pythonhosted.org/packages/0b/e0/a56e29be739d71249b1662ac49452a0c8f872bec462b5835e991495c1e22/django-live-templates-0.1a0.tar.gz", "yanked": false, "yanked_reason": null } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "22dbb3f062256c1ad9eff7f81384e256", "sha256": "68c4a57431b6cce60b84a28b3f6f46629ff058e256f9aa4518d759b7abce98b3" }, "downloads": -1, "filename": "django_live_templates-0.1a0-py3-none-any.whl", "has_sig": true, "md5_digest": "22dbb3f062256c1ad9eff7f81384e256", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 10435, "upload_time": "2019-10-26T22:30:26", "upload_time_iso_8601": "2019-10-26T22:30:26.587625Z", "url": "https://files.pythonhosted.org/packages/6e/55/286abb5e0fe8193a0c4185e061fb0e1ce1a04615d71c3d159bb06781d226/django_live_templates-0.1a0-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "c24214028b39086a1fcfd9780389db59", "sha256": "91db2247c26175f0b4ca2bc8a54a798ec296e8ae365064180d04ffd318a24f1d" }, "downloads": -1, "filename": "django-live-templates-0.1a0.tar.gz", "has_sig": true, "md5_digest": "c24214028b39086a1fcfd9780389db59", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8402, "upload_time": "2019-10-26T22:30:32", "upload_time_iso_8601": "2019-10-26T22:30:32.637198Z", "url": "https://files.pythonhosted.org/packages/0b/e0/a56e29be739d71249b1662ac49452a0c8f872bec462b5835e991495c1e22/django-live-templates-0.1a0.tar.gz", "yanked": false, "yanked_reason": null } ], "vulnerabilities": [] }