{ "info": { "author": "Alexander Herrmann", "author_email": "darignac@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 3.4", "Topic :: Utilities" ], "description": "django-shared\n=============\n\n|Downloads| |Version| |Wheel| |Egg| |Format| |License|\n\n.. |Downloads| image:: https://pypip.in/download/django-shared/badge.png\n :target: https://pypi.python.org/pypi/django-shared/\n :alt: Downloads\n.. |Version| image:: https://pypip.in/version/django-shared/badge.png\n :target: https://pypi.python.org/pypi/django-shared/\n :alt: Latest Version\n.. |Wheel| image:: https://pypip.in/wheel/django-shared/badge.png\n :target: https://pypi.python.org/pypi/django-shared/\n :alt: Wheel Status\n.. |Egg| image:: https://pypip.in/egg/django-shared/badge.png\n :target: https://pypi.python.org/pypi/django-shared/\n :alt: Egg Status\n.. |Format| image:: https://pypip.in/format/django-shared/badge.png\n :target: https://pypi.python.org/pypi/django-shared/\n :alt: Download format\n.. |License| image:: https://pypip.in/license/django-shared/badge.png\n :target: https://pypi.python.org/pypi/django-shared/\n :alt: License\n\n.. contents:: Table of Contents\n\nThis reusable app contains functionality I use across my projects. Feel free to use and expand.\n\nThe package is also on PyPI: `https://pypi.python.org/pypi/django-shared/ `_\n\nChangelog\n---------\n\n* 0.0.1\n * initial release\n\nUsage\n-----\n\nAdd to your ``INSTALLED_APPS`` setting:\n\n.. code-block:: python\n\n INSTALLED_APPS = [\n ...\n 'shared',\n ]\n\n\nContents\n--------\n\nUtils for django-configurations\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n``shared.configurations.ExternalCredentials``\n\nMixin for a Configuration class of django-configurations. Enables one to load specific variables from /configs/.py.\nGood to separate critical information from the settings itself. *Usually you do not check the configs into your code versioning system!*\n\nUsage example:\n\n.. code-block:: python\n\n # in settings.py (following the default django-configurations setup)\n class Common(Configurations):\n DATABASES = {\n 'default': ExternalCredentials.get_credentials_module().DATABASE,\n }\n \n # in /configs/.py; e.g. sampleproject/configs/Dev.py\n DATABASE = {\n 'ENGINE': 'django.db.backends.postgresql_psycopg2',\n 'NAME': 'db_name',\n 'USER': 'db_user',\n 'PASSWORD': 'db_password',\n }\n\n\nModule utils\n~~~~~~~~~~~~\n\n``function list_remove_duplicates(seq, idfun=None)``\n\nRemoves duplicates from a list. To preserve the list order, specify a function for the list ids as ``idfun``.\n\nManagement Commands\n~~~~~~~~~~~~~~~~~~~\n\n``python manage.py settings ``\n\nPrint the given setting value using ``pprint``.\n\n\nTemplate Tags\n~~~~~~~~~~~~~\n\n**copyrights**\n\ncontains\n\n- ``copyright_years``\n - displays are year span from ``settings.COPYRIGHT_YEAR_START`` (default: 2012) until now, e.g. ``2012 - 2014``", "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/dArignac/shared", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "django-shared", "package_url": "https://pypi.org/project/django-shared/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-shared/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/dArignac/shared" }, "release_url": "https://pypi.org/project/django-shared/0.0.1/", "requires_dist": null, "requires_python": null, "summary": "Additional Django functionality", "version": "0.0.1" }, "last_serial": 1156124, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "6f136571bd51ec5a974fd19344529e8e", "sha256": "19da92c92ad85651c3c142b016076fa553fe48c87a3129271e270846a09d77de" }, "downloads": -1, "filename": "django-shared-0.0.1.tar.gz", "has_sig": false, "md5_digest": "6f136571bd51ec5a974fd19344529e8e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3378, "upload_time": "2014-07-13T09:12:22", "url": "https://files.pythonhosted.org/packages/10/1d/981e498c646f63e4bd69bf48d0791e2b71200c4e6b27afd943a5ad2ee689/django-shared-0.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6f136571bd51ec5a974fd19344529e8e", "sha256": "19da92c92ad85651c3c142b016076fa553fe48c87a3129271e270846a09d77de" }, "downloads": -1, "filename": "django-shared-0.0.1.tar.gz", "has_sig": false, "md5_digest": "6f136571bd51ec5a974fd19344529e8e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3378, "upload_time": "2014-07-13T09:12:22", "url": "https://files.pythonhosted.org/packages/10/1d/981e498c646f63e4bd69bf48d0791e2b71200c4e6b27afd943a5ad2ee689/django-shared-0.0.1.tar.gz" } ] }