{ "info": { "author": "Nikolaus Schlemm", "author_email": "capo@coder-nostra.org", "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.6", "Programming Language :: Python :: 2.7", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "# django-themeswitch\n\n_django-themeswitch_ is a django app that allows users to easily switch between a set of predefined stylings.\n\n## Usage\n\nTo use _django-themeswitch_ update your `settings.py`:\n\n- add `themeswitch` to your `INSTALLED_APPS`\n- add 'themeswitch.context_processors.selected_theme' to your `TEMPLATE_CONTEXT_PROCESSORS`\n\nThen add an entry in your `urls.py` to include `themeswitch.urls`.\n\nIn your templates after you `{% load themeswitch_tags %}` you have access to the template tags `{% get_available_themes as VARIABLENAME %}`\nand `{% render_selected_theme_css %}`. Place the `{% render_selected_theme_css %}` somewhere in your template's ``.\n\nNow add an entry `THEMESWITCHER_THEMES` to your `settings.py`. `THEMESWITCHER_THEMES` should be a dictionary that contains mappings of `: `.\nThe URLs must be absolute, but can exclude the host. Example:\n\n```python\nTHEMESWITCHER_THEMES = {\n 'green': '/static/green.css'\n}\n```\n\nThis would make `get_available_themes` return just one theme, named 'green'.\n\nCheck out the [examples subdirectory](https://github.com/nschlemm/django-themeswitch/tree/master/examples).\n\n# License\n\nCopyright (c) 2013-2014, Nikolaus Schlemm\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\nRedistributions of source code must retain the above copyright notice, this\nlist of conditions and the following disclaimer.\nRedistributions in binary form must reproduce the above copyright notice, this\nlist of conditions and the following disclaimer in the documentation and/or\nother materials provided with the distribution.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\nANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\nWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\nFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\nDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\nSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\nCAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\nOR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.", "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/nschlemm/django-themeswitch", "keywords": null, "license": "BSD License", "maintainer": null, "maintainer_email": null, "name": "django-themeswitch", "package_url": "https://pypi.org/project/django-themeswitch/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-themeswitch/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/nschlemm/django-themeswitch" }, "release_url": "https://pypi.org/project/django-themeswitch/0.3.1/", "requires_dist": null, "requires_python": null, "summary": "a django app that allows for easy switch between themes", "version": "0.3.1" }, "last_serial": 1054977, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "be25525816c50be8e89d8b716bc3ff93", "sha256": "54d8474e118b981c16f730b85b0ab4b8f6507cd7b3d52e66e9c0ae19c4395d65" }, "downloads": -1, "filename": "django-themeswitch-0.1.tar.gz", "has_sig": false, "md5_digest": "be25525816c50be8e89d8b716bc3ff93", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3535, "upload_time": "2014-03-07T14:11:09", "url": "https://files.pythonhosted.org/packages/9f/57/698a7a406925ba221ce4b32bc4a90964daca772e4501284265f942935f0a/django-themeswitch-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "e99da8f0a0c6e06c098048a6ccb5fffa", "sha256": "2c0fea7b526139ea70d04e263006e2d796f62d36aeb3b6bedfadeebae6a3cf8e" }, "downloads": -1, "filename": "django-themeswitch-0.2.tar.gz", "has_sig": false, "md5_digest": "e99da8f0a0c6e06c098048a6ccb5fffa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7033, "upload_time": "2014-03-27T23:03:44", "url": "https://files.pythonhosted.org/packages/77/bb/bf50eb39fd9e1f5d431b641aae8e4d3056d369938166dcecbbafa4e03caf/django-themeswitch-0.2.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "ad34eeca4e2c78e125894adfb2a9690e", "sha256": "59b4852feed8380dd0f08abcdaffda9cb5934ecef877763bcda703b9cad11e20" }, "downloads": -1, "filename": "django-themeswitch-0.3.1.tar.gz", "has_sig": false, "md5_digest": "ad34eeca4e2c78e125894adfb2a9690e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7064, "upload_time": "2014-04-08T15:18:29", "url": "https://files.pythonhosted.org/packages/a7/c3/0847ed68c537d4832ca04c08d1dddf9859afe09085c99aa612907705fc1d/django-themeswitch-0.3.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ad34eeca4e2c78e125894adfb2a9690e", "sha256": "59b4852feed8380dd0f08abcdaffda9cb5934ecef877763bcda703b9cad11e20" }, "downloads": -1, "filename": "django-themeswitch-0.3.1.tar.gz", "has_sig": false, "md5_digest": "ad34eeca4e2c78e125894adfb2a9690e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7064, "upload_time": "2014-04-08T15:18:29", "url": "https://files.pythonhosted.org/packages/a7/c3/0847ed68c537d4832ca04c08d1dddf9859afe09085c99aa612907705fc1d/django-themeswitch-0.3.1.tar.gz" } ] }