{ "info": { "author": "Jes\u00fas Espino", "author_email": "jespinog@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Django", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Topic :: Software Development :: Libraries", "Topic :: Utilities" ], "description": "Django Settings Resolver\n========================\n\n.. image:: https://travis-ci.org/jespino/django-sr.png?branch=master\n :target: https://travis-ci.org/jespino/django-sr\n\n.. image:: https://coveralls.io/repos/jespino/django-sr/badge.png?branch=master\n :target: https://coveralls.io/r/jespino/django-sr?branch=master\n\n.. image:: https://pypip.in/v/django-sr/badge.png\n :target: https://crate.io/packages/django-sr\n\n.. image:: https://pypip.in/d/django-sr/badge.png\n :target: https://crate.io/packages/django-sr\n\n\nThe siple way to resolve some data defined on settings. You can easy to use it on\nany part of you python code on your django project.\n\nAlso, this exposeses templatetags for django template engine and jinja template enjine\nfor easy use it from templates. See examples to better understand how it works.\n\n\nHow to install\n--------------\n\nYou can also install it with: ``pip install django-sr``\n\n\nConfiguration\n-------------\n\nAdd the sr app to your installed apps and define your settings :code:`SR` variable as a dictionary.\n\nExample:\n\n.. code-block:: python\n\n # settings.py\n SR = {\n 'footer': {\n 'phone': '+34 987654321',\n 'address': 'Foo Bar Street, 32',\n 'other_text': 'Text with parameters {0}',\n },\n 'header': {\n 'logo': {\n 'alt': 'Logo image',\n 'src': 'http://foo.bar/images/logo.png'\n }\n }\n }\n\n\nUsage examples\n--------------\n\nUse it directly from your code.\n\n.. code-block:: python\n\n from sr import sr\n logo_alt = sr('header.logo.alt') # Logo image\n other_text = sr('footer.other_text', 'parameter') # Text with parameters parameter\n\n\nAlso, from django templates with the ``sr`` template tag:\n\n.. code-block:: django\n\n {% load sr %}\n {% sr 'footer.phone' %}\n {% sr 'footer.other_text' 'text' %}\n\n\nAnd you can use it from jinja templates using the ``sr`` global function:\n\n.. code-block:: jinja\n\n {{ sr('footer.phone') }}\n {{ sr('footer.other_text', 'text') }}\n\n\nFor jinja template integration for django you need use `django-jinja `_\n", "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/jespino/django-sr", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "django-sr", "package_url": "https://pypi.org/project/django-sr/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-sr/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/jespino/django-sr" }, "release_url": "https://pypi.org/project/django-sr/0.0.4/", "requires_dist": null, "requires_python": null, "summary": "Django settings resolver.", "version": "0.0.4" }, "last_serial": 1208912, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "7b629cf921cc68e4e309d2d0900e02e5", "sha256": "3305294d73386ae8df98bf5ccb5f0cac002ce3493371b5b0d307d5696b8be4f1" }, "downloads": -1, "filename": "django-sr-0.0.1.tar.gz", "has_sig": false, "md5_digest": "7b629cf921cc68e4e309d2d0900e02e5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3309, "upload_time": "2013-05-13T14:03:01", "url": "https://files.pythonhosted.org/packages/26/26/f3028ee58f6954934860d3ea90aa2a885f928be3cff887752c0ca3f1ebef/django-sr-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "d3f1567fc9b80108f62ce49b93df65bc", "sha256": "667dc1dbf60c783ebd959558a92ec80d687dcca490cb8ff4d7ebe1c9938c454a" }, "downloads": -1, "filename": "django-sr-0.0.2.tar.gz", "has_sig": false, "md5_digest": "d3f1567fc9b80108f62ce49b93df65bc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3424, "upload_time": "2013-06-02T09:26:25", "url": "https://files.pythonhosted.org/packages/6f/25/41634f4500afb781d4fa186d4c8e394d6ffa0b55f45f0990c561cbcda03a/django-sr-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "87590af3e5b4afa9a723f9ff5579fad0", "sha256": "6227fdfb437494448ff4a486356204e99a57d3d63858b8e9242c25cacca92559" }, "downloads": -1, "filename": "django-sr-0.0.3.tar.gz", "has_sig": false, "md5_digest": "87590af3e5b4afa9a723f9ff5579fad0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3611, "upload_time": "2013-07-09T14:22:46", "url": "https://files.pythonhosted.org/packages/e2/72/606a8fa65ca9f1c1421c5306cc7f68aecd29bc0380869cc624d566d76a91/django-sr-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "1a11c2181de2140b46cc491ca68d4e3d", "sha256": "3586b852ae8af1b4b2796590534b0b867b523f47a5779b2ccb6ce010efc57e34" }, "downloads": -1, "filename": "django-sr-0.0.4.tar.gz", "has_sig": false, "md5_digest": "1a11c2181de2140b46cc491ca68d4e3d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3606, "upload_time": "2014-09-01T08:15:47", "url": "https://files.pythonhosted.org/packages/3b/da/7d19c3d34a0f7180530733abdd0bbd0742de4a0fce51883a0e7f65ae6a4f/django-sr-0.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1a11c2181de2140b46cc491ca68d4e3d", "sha256": "3586b852ae8af1b4b2796590534b0b867b523f47a5779b2ccb6ce010efc57e34" }, "downloads": -1, "filename": "django-sr-0.0.4.tar.gz", "has_sig": false, "md5_digest": "1a11c2181de2140b46cc491ca68d4e3d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3606, "upload_time": "2014-09-01T08:15:47", "url": "https://files.pythonhosted.org/packages/3b/da/7d19c3d34a0f7180530733abdd0bbd0742de4a0fce51883a0e7f65ae6a4f/django-sr-0.0.4.tar.gz" } ] }