{ "info": { "author": "hipo", "author_email": "pypi@hipolabs.com", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "# Flame for Django Suit\n\nSolves two problems:\n\n - Warns users when two people are editing the same object. \n - Autosaves the changes to firebase realtime and notifies the user if there are unsaved changes. If the user leaves the page for some reason, they can see their unsaved changes and apply them to the form.\n \n## The main problem\n\nWhen two users are editing the same django admin page at the same time, it is almost inevitable that one of the users will will override the other\u2019s changes. \nFlame is the simplest solution to prevent this problem. \n\n## The solution\n\nUse a pub-sub server to track active users and notify others when a change occurs.\n\n### No need to set-up Tornado or similar pub-sub server.\n\nFlame uses Firebase as the pub-sub provider. Firebase is quite reliable and the free tier already supports up to 50 connections which should be enough for an admin page. \n\n# Setting-up\n\n```\npip install django-suit-flame\n```\n\nadd django-suit-flame *below* django-suit\n\n```\n\n```\n\n\nadd necessary firebase keys:\n\nFLAME_AUTOSAVE = True\nFLAME_FIREBASE_SUBDOMAIN = 'https://scorching-inferno-136.firebaseio.com'\nFLAME_FIREBASE_SECRET_KEY = 'z22bA3KOg54gfwr9lmoWyi1sg8dL8uwOg8txRyfl2'\n\n\n### Additional settings\n\nIf you want to stop the autosave functionality, change this setting\nFLAME_AUTOSAVE = True\n\n# Other Features\n## Autosave!\n\nMany people are using django as CMS or content editing purposes. The biggest nightmare for an editor is to accidentally close the browser and lose all the data he wrote. \nThe modern web apps (Gmail, Google docs, etc...) already support auto-save and many users complaint and suffer from this missing feature with sites built with django.\n\n### How it works?\nFlame syncs the contents of the change form regularly with Firebase. When the user saves the form, it deletes this data from firebase.\nHowever if the user leaves the page without saving the form, the data stays at the page. \nWhen the user re-enters to that page, he sees a notification box that says \"You have unsaved changes\" \nThe user can choose to apply the changes to the form or ignore (and delete) this content forever.\n\n\nMade by Hipo", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "UNKNOWN", "keywords": null, "license": "BSD License", "maintainer": null, "maintainer_email": null, "name": "django-suit-flame", "package_url": "https://pypi.org/project/django-suit-flame/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-suit-flame/", "project_urls": { "Download": "UNKNOWN", "Homepage": "UNKNOWN" }, "release_url": "https://pypi.org/project/django-suit-flame/0.1/", "requires_dist": null, "requires_python": null, "summary": "See active users & autosave changes at django admin.", "version": "0.1" }, "last_serial": 1684180, "releases": { "0.1": [] }, "urls": [] }