{ "info": { "author": "Arthur Street", "author_email": "arthur@racingtadpole.com", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "=====\ndjango-singleton-admin\n=====\n\nThis package provides a way to ensure singleton classes can only have one instance in the\nDjango admin panel. The package contains:\n\n* admin.py, which defines the SingletonAdmin class, preventing adding if an instance already exists.\n* templates/admin/singleton_enabled_base.html, which hides the relevant \"add\" buttons on the admin.\n\nThe admin.py file is taken directly from Mezzanine by Stephen McDonald,\nhttps://bitbucket.org/stephenmcd/mezzanine/src/\n\nThe template file is taken from a talk at SyDjango by Stephen McDonald,\nhttp://blog.jupo.org/2012/10/26/sydjango-talk-django-admin-missing-manual/ \n\n\nRequirements\n--------------\n\nSee Mezzanine for more details.\n\n\nQuick start\n-----------\n\n1. Add the app to your INSTALLED_APPS setting like this::\n\n INSTALLED_APPS = (\n ...\n 'django_singleton_admin',\n )\n\n2. In your singleton model's admin.py file, register it with the admin using this class, e.g.::\n\n\t\tfrom django_singleton_admin.admin import SingletonAdmin\n\n class GlobalSettingsAdmin(SingletonAdmin):\n pass\n\n admin.site.register(BSGlobalSettings, GlobalSettingsAdmin)\n\n\n3. Extend the admin template \"admin/base_site.py\" using the provided base instead of\n of the usual \"admin/base.html\", i.e. using:\n\n {% extends \"admin/singleton_enabled_base.html\" %}\n\nNote that this template uses the \"extrastyle\" block, so if you also override that, you\nwill need to copy the contents of the provided template into your code instead.\n(In that case you may not need to add the app to your installed apps either.)", "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/RacingTadpole/django-singleton-admin", "keywords": "globals singleton", "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "django-singleton-admin", "package_url": "https://pypi.org/project/django-singleton-admin/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-singleton-admin/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/RacingTadpole/django-singleton-admin" }, "release_url": "https://pypi.org/project/django-singleton-admin/0.0.4/", "requires_dist": null, "requires_python": null, "summary": "This package provides a way to ensure singleton classes can \n only have one instance in the Django admin panel.\n It is taken from Mezzanine by Stephen McDonald.", "version": "0.0.4" }, "last_serial": 781660, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "044038d1e23b66d705ca0e198153828c", "sha256": "2ab594126c343fc9c0128b4177b82b2bd954220c38c21c21946904b5be44b02f" }, "downloads": -1, "filename": "django-singleton-admin-0.0.1.macosx-10.7-intel.exe", "has_sig": false, "md5_digest": "044038d1e23b66d705ca0e198153828c", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 68757, "upload_time": "2013-06-28T04:00:21", "url": "https://files.pythonhosted.org/packages/25/28/99ceaad432ee2f90e958fb589fe2bd0f327ac3df7b66a96138e634efe442/django-singleton-admin-0.0.1.macosx-10.7-intel.exe" }, { "comment_text": "", "digests": { "md5": "feee095608fd25eb22694d9f3ba1a6a7", "sha256": "7874ca6d359e13a157a1b2a849bab1efeb9e5b12a05329e7d10bf45aee0d143c" }, "downloads": -1, "filename": "django-singleton-admin-0.0.1.tar.gz", "has_sig": false, "md5_digest": "feee095608fd25eb22694d9f3ba1a6a7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4455, "upload_time": "2013-06-28T04:00:18", "url": "https://files.pythonhosted.org/packages/d2/b5/2778ae97e4a4f45a52cfa08e113645c8573bbbf12e73171e540e2eb820f4/django-singleton-admin-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "f36dad7c444935e42c41d272f0f50371", "sha256": "f24bd5c98833be444d83cae265c0ec126c628ac66d679da9a76706ca7551a9ba" }, "downloads": -1, "filename": "django-singleton-admin-0.0.2.macosx-10.7-intel.exe", "has_sig": false, "md5_digest": "f36dad7c444935e42c41d272f0f50371", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 69252, "upload_time": "2013-06-28T04:03:40", "url": "https://files.pythonhosted.org/packages/02/fb/c2cdc72d9c33bd4e46e12aa0e59ae1d6786725770dae5ffe79869c030797/django-singleton-admin-0.0.2.macosx-10.7-intel.exe" }, { "comment_text": "", "digests": { "md5": "f85d5bffce61998f8e0556516bd6ee34", "sha256": "2dcaad7e5709eda83c0e292ca5d20c2f7ab96cabae46fabe72426f6aebae2ba2" }, "downloads": -1, "filename": "django-singleton-admin-0.0.2.tar.gz", "has_sig": false, "md5_digest": "f85d5bffce61998f8e0556516bd6ee34", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4644, "upload_time": "2013-06-28T04:03:37", "url": "https://files.pythonhosted.org/packages/f3/ab/f4a09e8e0ff1be18f19552ac32ccface505981ec4ab9536dca272d289890/django-singleton-admin-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "504a59ab490065bf6144f970fb63d10a", "sha256": "5d447f051d5ac83c4dd8d062c2361d71536f11f26e901ef0367869d18944c520" }, "downloads": -1, "filename": "django-singleton-admin-0.0.3.macosx-10.7-intel.exe", "has_sig": false, "md5_digest": "504a59ab490065bf6144f970fb63d10a", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 69252, "upload_time": "2013-06-28T04:06:36", "url": "https://files.pythonhosted.org/packages/90/22/46e66a18c862e024fd702e58d96bfa7d0ac5f051520b46fd8ed0b4def7a1/django-singleton-admin-0.0.3.macosx-10.7-intel.exe" }, { "comment_text": "", "digests": { "md5": "510637483210ca6d669d63282c4a3fcc", "sha256": "5ff272793c61436f9ad059d055712c3089820a7df1cd81e06d69424cb6094dd4" }, "downloads": -1, "filename": "django-singleton-admin-0.0.3.tar.gz", "has_sig": false, "md5_digest": "510637483210ca6d669d63282c4a3fcc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4653, "upload_time": "2013-06-28T04:06:32", "url": "https://files.pythonhosted.org/packages/71/0c/8cf9a9830398bf5bf09b6810e53f027e307226085b89cc6a0e1122cb08f6/django-singleton-admin-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "72fce011ecde83d4fed7176db9c6918c", "sha256": "b8ad3fc48333aaf0579335afe15fc6faa3f076f03a1efff642023862777bfed8" }, "downloads": -1, "filename": "django-singleton-admin-0.0.4.macosx-10.7-intel.exe", "has_sig": false, "md5_digest": "72fce011ecde83d4fed7176db9c6918c", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 69332, "upload_time": "2013-06-28T04:47:30", "url": "https://files.pythonhosted.org/packages/29/57/b9034c30f9aea0ddeed7c883daff79aa9797f98a0c30d6e6a6664f608c8d/django-singleton-admin-0.0.4.macosx-10.7-intel.exe" }, { "comment_text": "", "digests": { "md5": "53e7d937f36652ef87f30d5ad5e00b29", "sha256": "a49d42c32fea5f196e1bb36cd37f07ba11957d2e01f0385eb3aa205325a80103" }, "downloads": -1, "filename": "django-singleton-admin-0.0.4.tar.gz", "has_sig": false, "md5_digest": "53e7d937f36652ef87f30d5ad5e00b29", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4709, "upload_time": "2013-06-28T04:47:26", "url": "https://files.pythonhosted.org/packages/b1/cc/5d32508804b6074d13056ed18ebcd6cfaa4887e56c4f442285541ee95fbd/django-singleton-admin-0.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "72fce011ecde83d4fed7176db9c6918c", "sha256": "b8ad3fc48333aaf0579335afe15fc6faa3f076f03a1efff642023862777bfed8" }, "downloads": -1, "filename": "django-singleton-admin-0.0.4.macosx-10.7-intel.exe", "has_sig": false, "md5_digest": "72fce011ecde83d4fed7176db9c6918c", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 69332, "upload_time": "2013-06-28T04:47:30", "url": "https://files.pythonhosted.org/packages/29/57/b9034c30f9aea0ddeed7c883daff79aa9797f98a0c30d6e6a6664f608c8d/django-singleton-admin-0.0.4.macosx-10.7-intel.exe" }, { "comment_text": "", "digests": { "md5": "53e7d937f36652ef87f30d5ad5e00b29", "sha256": "a49d42c32fea5f196e1bb36cd37f07ba11957d2e01f0385eb3aa205325a80103" }, "downloads": -1, "filename": "django-singleton-admin-0.0.4.tar.gz", "has_sig": false, "md5_digest": "53e7d937f36652ef87f30d5ad5e00b29", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4709, "upload_time": "2013-06-28T04:47:26", "url": "https://files.pythonhosted.org/packages/b1/cc/5d32508804b6074d13056ed18ebcd6cfaa4887e56c4f442285541ee95fbd/django-singleton-admin-0.0.4.tar.gz" } ] }