{ "info": { "author": "Witoi.com", "author_email": "dev@witoi.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 1 - Planning", "Framework :: Django", "Intended Audience :: Developers", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "=====================\nDjango Locations Tree\n=====================\n\nSimple application for location field as TreeForeignKey (see django-mptt) with form field.\n\n\nUsage\n=====\n\n::\n\n # settings.py\n INSTALLED_APPS += ('mptt', 'locationstree')\n\n # models.py\n class Place(models.Model):\n location = TreeForeignKey('locationstree.Location')\n\n # forms.py\n class PlaceForm(models.Model):\n location = JustLeafsLocationField(queryset=Location.objects.all())\n\n\nContext Processor\n=================\n\nThere is a context processor that sets Locations.objects.all() to context with the variable name by default `locations`::\n\n # settings.py\n CONTEXT_PROCESSORS += ('locationstree.context_processors.locations',)\n\n\nThe variable name is configurable via settings variable::\n\n # settings.py\n LOCATIONSTREE_CONTEXT_VARIABLE_NAME = 'lugares_comunes'\n\nIt uses cache with the key name `locationstree.locations` and a TTL of 1 week configurable via settings variable::\n\n # settings.py\n LOCATIONSTREE_CACHE_TTL = 60 * 60 * 24 # 1 day", "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/witoi/django-locationstree", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "django-locationstree", "package_url": "https://pypi.org/project/django-locationstree/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-locationstree/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/witoi/django-locationstree" }, "release_url": "https://pypi.org/project/django-locationstree/0.0.0.3/", "requires_dist": null, "requires_python": null, "summary": "Simple Django App for location tree", "version": "0.0.0.3" }, "last_serial": 836929, "releases": { "0.0.0.2": [ { "comment_text": "", "digests": { "md5": "365db9de2feb16fde64075006586f619", "sha256": "083a861c273a441d59c1a430497ebe1f9dd25901c6d8f25cede1c2aeff7e973e" }, "downloads": -1, "filename": "django-locationstree-0.0.0.2.tar.gz", "has_sig": false, "md5_digest": "365db9de2feb16fde64075006586f619", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12393, "upload_time": "2013-04-12T18:40:43", "url": "https://files.pythonhosted.org/packages/23/38/56ba3223dac04a5a8e0e1e416a054fae3e166aefa1e7e4e405a19e06885a/django-locationstree-0.0.0.2.tar.gz" } ], "0.0.0.3": [ { "comment_text": "", "digests": { "md5": "b4bab6cb6c22d2037c07a3ada1b7fb89", "sha256": "014d6c3fa1c71205c4992d58046ddf1ba3edd310151c99f3d5adfd67602422a0" }, "downloads": -1, "filename": "django-locationstree-0.0.0.3.tar.gz", "has_sig": false, "md5_digest": "b4bab6cb6c22d2037c07a3ada1b7fb89", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13074, "upload_time": "2013-08-09T21:52:59", "url": "https://files.pythonhosted.org/packages/dd/07/6daeeb5c1c5b64c0a537961133e04ab288f8c41c56168d93074d55af931b/django-locationstree-0.0.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b4bab6cb6c22d2037c07a3ada1b7fb89", "sha256": "014d6c3fa1c71205c4992d58046ddf1ba3edd310151c99f3d5adfd67602422a0" }, "downloads": -1, "filename": "django-locationstree-0.0.0.3.tar.gz", "has_sig": false, "md5_digest": "b4bab6cb6c22d2037c07a3ada1b7fb89", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13074, "upload_time": "2013-08-09T21:52:59", "url": "https://files.pythonhosted.org/packages/dd/07/6daeeb5c1c5b64c0a537961133e04ab288f8c41c56168d93074d55af931b/django-locationstree-0.0.0.3.tar.gz" } ] }