{ "info": { "author": "Mark Lavin", "author_email": "markdlavin@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "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", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "Django-Responsive\n========================\n\n.. image:: https://travis-ci.org/mlavin/django-responsive.svg?branch=master\n :target: https://travis-ci.org/mlavin/django-responsive\n\n\ndjango-responsive a utility application for building responsive websites\nin Django. This tool is meant to complement the use of CSS media queries and\nhelp solve problems with fixed width elements such as advertisements or embedded video.\n\nThis project does *not* match devices based on user agent strings and instead\nuses a small piece of javascript to make the device window size available on the server.\nOnce enabled you can access a ``device_info`` dictionary in your templates::\n\n {'width': 320, 'type': 'phone', 'height': 480}\n\nNow you and conditionally render content based on the device size or type.\n\n\nInstallation\n------------------------------------\n\ndjango-responsive requires Python 2.6 or 2.7 and django>=1.3. There is experimental\nsupport for Python 3.2 if using Django >= 1.5. It is easiest to install django-responsive from PyPi using pip::\n\n pip install django-responsive\n\n\nConfiguration\n------------------------------------\n\nTo enable django-responsive you will need to update your ``MIDDLEWARE_CLASSES`` and\n``TEMPLATE_CONTEXT_PROCESSORS`` settings.::\n\n MIDDLEWARE_CLASSES = (\n # Other middleware classes go here\n 'responsive.middleware.DeviceInfoMiddleware',\n )\n\n TEMPLATE_CONTEXT_PROCESSORS = (\n # Other context processors included here\n 'responsive.context_processors.device_info',\n )\n\nNote that ``TEMPLATE_CONTEXT_PROCESSORS`` is not included in the default settings\nand you should be careful to not lose the defaults when adding this additional\ncontext processor.\n\nThere is an optional setting ``RESPONSIVE_BREAKPOINTS`` which is\nused to determine the ``type`` included in the ``device_info`` dictionary. The\ndefault breakpoints are::\n\n # Name, Max Width (inclusive)\n DEFAULT_BREAKPOINTS = {\n 'phone': 480,\n 'tablet': 767,\n 'desktop': None,\n }\n\nTo overwrite the default breakpoints, include a ``RESPONSIVE_BREAKPOINTS`` \ndictionary in the project's settings.py file::\n\n # Name, Max Width (inclusive)\n RESPONSIVE_BREAKPOINTS = {\n 'phone': 480,\n 'tablet': 767,\n 'desktop': None,\n }\n\n\nLicense\n--------------------------------------\n\ndjango-responsive is released under the BSD License. See the \n`LICENSE `_ file for more details.\n\n\nContributing\n--------------------------------------\n\nIf you think you've found a bug or are interested in contributing to this project\ncheck out `django-responsive on Github `_.\n\n\nRunning the Tests\n------------------------------------\n\nYou can run the tests with via::\n\n python runtests.py\n\nIf you see any test failures please report them to the Github issue tracker.", "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/mlavin/django-responsive", "keywords": null, "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "django-responsive", "package_url": "https://pypi.org/project/django-responsive/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-responsive/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/mlavin/django-responsive" }, "release_url": "https://pypi.org/project/django-responsive/0.3.0/", "requires_dist": null, "requires_python": null, "summary": "Utilities for building responsive websites in Django.", "version": "0.3.0" }, "last_serial": 1216097, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "5df890e6d8d6c9d8b1ea9981e8bf6af4", "sha256": "45932cf4b90b6112dc9eeb670deecf5a38ec6f86630e287816723efb71a7b19b" }, "downloads": -1, "filename": "django-responsive-0.1.0.tar.gz", "has_sig": false, "md5_digest": "5df890e6d8d6c9d8b1ea9981e8bf6af4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6716, "upload_time": "2012-08-10T04:29:38", "url": "https://files.pythonhosted.org/packages/d7/ae/8848e5fb88d3ec2198eb3d0136ee48dbb2b4820d162044bf7009a94b3577/django-responsive-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "66fd6c1543900c017581770a885f2ac7", "sha256": "b5f74385ea88f232fc99690a4128d884dbd8990c8323667909864615ce16f734" }, "downloads": -1, "filename": "django-responsive-0.1.1.tar.gz", "has_sig": false, "md5_digest": "66fd6c1543900c017581770a885f2ac7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6814, "upload_time": "2012-08-12T15:12:12", "url": "https://files.pythonhosted.org/packages/d2/1e/02604286ab9e7b0b83f1fc53a68537dd6c1ba3b2c4aae8bd5d9248e5ce6e/django-responsive-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "ce8911ff1020b4b59f338a8e96843d38", "sha256": "fd001af34401a7975bf1210ca5e90f148a0187788b6b7534a34fa325ed53d410" }, "downloads": -1, "filename": "django-responsive-0.1.2.tar.gz", "has_sig": false, "md5_digest": "ce8911ff1020b4b59f338a8e96843d38", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6856, "upload_time": "2012-08-25T20:09:51", "url": "https://files.pythonhosted.org/packages/f9/84/2f7a09e700798064c92faed71863960a9c0ccc0a075eab4eba5994b4f4ee/django-responsive-0.1.2.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "dbd5e634555c865687327605d9c70baf", "sha256": "8d67ec3087ef577db016b6440dec706e82cc23d95b121f150bd8548fe385a900" }, "downloads": -1, "filename": "django-responsive-0.2.0.tar.gz", "has_sig": false, "md5_digest": "dbd5e634555c865687327605d9c70baf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7021, "upload_time": "2013-06-08T19:49:41", "url": "https://files.pythonhosted.org/packages/fa/fd/a8cafad8b8c885970292bb591f332bdf2fd909afeedb1df3734f5125b96f/django-responsive-0.2.0.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "0eef27c0287cadcfcdf67c4daa09e0c1", "sha256": "332cf5408f958cf5f411a95dbb68a29ceb3932c21e35ca944b34bed098008abf" }, "downloads": -1, "filename": "django_responsive-0.3.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "0eef27c0287cadcfcdf67c4daa09e0c1", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 11400, "upload_time": "2014-09-07T15:16:25", "url": "https://files.pythonhosted.org/packages/93/a8/7462034b8c3671862ab0decc673528e6abd05fba168f31abffb54b9fbb81/django_responsive-0.3.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "39de7df11800b89c4220cf61fc528988", "sha256": "f6e2b2b7661914b4dc07ef13f372ee36fe2eb1dcaf5888f4f34031395b84f12d" }, "downloads": -1, "filename": "django-responsive-0.3.0.tar.gz", "has_sig": false, "md5_digest": "39de7df11800b89c4220cf61fc528988", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7504, "upload_time": "2014-09-07T15:16:21", "url": "https://files.pythonhosted.org/packages/1a/5f/c745fbe71f3fda3ba96a74bad9edd49f98008579e8c7c927fa8d0cc220e4/django-responsive-0.3.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0eef27c0287cadcfcdf67c4daa09e0c1", "sha256": "332cf5408f958cf5f411a95dbb68a29ceb3932c21e35ca944b34bed098008abf" }, "downloads": -1, "filename": "django_responsive-0.3.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "0eef27c0287cadcfcdf67c4daa09e0c1", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 11400, "upload_time": "2014-09-07T15:16:25", "url": "https://files.pythonhosted.org/packages/93/a8/7462034b8c3671862ab0decc673528e6abd05fba168f31abffb54b9fbb81/django_responsive-0.3.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "39de7df11800b89c4220cf61fc528988", "sha256": "f6e2b2b7661914b4dc07ef13f372ee36fe2eb1dcaf5888f4f34031395b84f12d" }, "downloads": -1, "filename": "django-responsive-0.3.0.tar.gz", "has_sig": false, "md5_digest": "39de7df11800b89c4220cf61fc528988", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7504, "upload_time": "2014-09-07T15:16:21", "url": "https://files.pythonhosted.org/packages/1a/5f/c745fbe71f3fda3ba96a74bad9edd49f98008579e8c7c927fa8d0cc220e4/django-responsive-0.3.0.tar.gz" } ] }