{ "info": { "author": "Lior Regev", "author_email": "lioregev@gmail.com", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "=====\nTranslate app names and allow singletons\n=====\n\nThis is a simple Django app to enable translation of app names in\nDjango admin and allow the use of singletons.\nWhen an object is marked as a singleton only one instance will be allowed to exist.\n\nDetailed documentation is in the \"docs\" directory.\n\nQuick start\n-----------\n\n1. Add \"django_singleton_app_name\" to your INSTALLED_APPS setting like this::\n\n INSTALLED_APPS = (\n ...\n 'django_singleton_app_name',\n )\n\n \n2. Copy templates from django-admin-app-names-singleton/templates\n to your project's template directory.\n All app names will now be translated when possible.\n In order to add app names to .po files via \"makemessages\"\n create a python file \"app_names.py\" next to your \"settings.py\" file\n and paste the following import into it:\n \"from django.utils.translation import ugettext_lazy as _\".\n For each app you want to mark for translation add a line such as the following:\n _(\"\")\n Example:\n _(\"auth\")\n\n \n3. To mark a model as a singleton you must subclass that model from\n \"django_singleton_app_name.models.SingletonBaseModel\"\n And create a ModelAdmin for that model that subclasses\n \"django_singleton_app_name.admin.SingletonModelAdmin\"\n and overwrite the ModelAdmin's member \"model\" with the Model's class\n Example:\n class ContactInformation(SingletonBaseModel):\n address = models.CharField(max_length=65)\n email = models.EmailField()\n \n class ContactInfoAdmin(SingletonModelAdmin):\n model = ContactInformation", "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/pylior/django-admin-app-names-singleton", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "django-admin-app-names-singleton", "package_url": "https://pypi.org/project/django-admin-app-names-singleton/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-admin-app-names-singleton/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/pylior/django-admin-app-names-singleton" }, "release_url": "https://pypi.org/project/django-admin-app-names-singleton/1.1/", "requires_dist": null, "requires_python": null, "summary": "Django admin enhancer", "version": "1.1" }, "last_serial": 1006513, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "77a8cf18e47671323f611702eb78fa13", "sha256": "dd311aeb1200a08963f27237b9ad48983478d0d64bd9a45a8d221fb72c4dc404" }, "downloads": -1, "filename": "django-admin-app-names-singleton-1.0.win32.exe", "has_sig": false, "md5_digest": "77a8cf18e47671323f611702eb78fa13", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 206192, "upload_time": "2013-09-14T11:29:47", "url": "https://files.pythonhosted.org/packages/bd/a9/d7223b369e381ea365ca98fda740d297d01be062a5739f06b9488790af5e/django-admin-app-names-singleton-1.0.win32.exe" }, { "comment_text": "", "digests": { "md5": "8419827532bff252aea529d0416a2739", "sha256": "c6a074e4818a6f265e13c0c8fd194131ed968776ebda3c12f1e71dc11767dfaf" }, "downloads": -1, "filename": "django-admin-app-names-singleton-1.0.zip", "has_sig": false, "md5_digest": "8419827532bff252aea529d0416a2739", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12913, "upload_time": "2013-09-14T11:29:40", "url": "https://files.pythonhosted.org/packages/54/d8/add89faa8cf535a04a62bba35f6dbeaceb5d7fec3e90d8be22a33ec3cf15/django-admin-app-names-singleton-1.0.zip" } ], "1.1": [ { "comment_text": "", "digests": { "md5": "581951034b18e378edb458ec98b0a759", "sha256": "12fd7dc94f31135db7351d0ebd249d906cb5800ee8b7d3c7e58e8b0f787a0ade" }, "downloads": -1, "filename": "django-admin-app-names-singleton-1.1.win32.exe", "has_sig": false, "md5_digest": "581951034b18e378edb458ec98b0a759", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 206566, "upload_time": "2014-02-20T16:00:51", "url": "https://files.pythonhosted.org/packages/3c/21/49e81f972f8e60f3eb68c547e3c5e6a0528308e92b1a53be00fb8ed8d4e3/django-admin-app-names-singleton-1.1.win32.exe" }, { "comment_text": "", "digests": { "md5": "b86814d9a00a531118c4ca0bc15634a1", "sha256": "e9dfe4cd4d27bbc88218e030118a4276202ba67e7eca9942277409e5abd89485" }, "downloads": -1, "filename": "django-admin-app-names-singleton-1.1.zip", "has_sig": false, "md5_digest": "b86814d9a00a531118c4ca0bc15634a1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13257, "upload_time": "2014-02-20T16:00:45", "url": "https://files.pythonhosted.org/packages/1c/eb/f3ca7c6741b165393741af8f660488d88e66dc90ff5e6961fc8ef9f03c7d/django-admin-app-names-singleton-1.1.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "581951034b18e378edb458ec98b0a759", "sha256": "12fd7dc94f31135db7351d0ebd249d906cb5800ee8b7d3c7e58e8b0f787a0ade" }, "downloads": -1, "filename": "django-admin-app-names-singleton-1.1.win32.exe", "has_sig": false, "md5_digest": "581951034b18e378edb458ec98b0a759", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 206566, "upload_time": "2014-02-20T16:00:51", "url": "https://files.pythonhosted.org/packages/3c/21/49e81f972f8e60f3eb68c547e3c5e6a0528308e92b1a53be00fb8ed8d4e3/django-admin-app-names-singleton-1.1.win32.exe" }, { "comment_text": "", "digests": { "md5": "b86814d9a00a531118c4ca0bc15634a1", "sha256": "e9dfe4cd4d27bbc88218e030118a4276202ba67e7eca9942277409e5abd89485" }, "downloads": -1, "filename": "django-admin-app-names-singleton-1.1.zip", "has_sig": false, "md5_digest": "b86814d9a00a531118c4ca0bc15634a1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13257, "upload_time": "2014-02-20T16:00:45", "url": "https://files.pythonhosted.org/packages/1c/eb/f3ca7c6741b165393741af8f660488d88e66dc90ff5e6961fc8ef9f03c7d/django-admin-app-names-singleton-1.1.zip" } ] }