{ "info": { "author": "Thomas Weholt", "author_email": "thomas@weholt.org", "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.7", "Programming Language :: Python :: 3.3", "Topic :: Database" ], "description": "================\nMobility Helpers\n================\n\nVersion : 0.3\nAuthor : Thomas Weholt \nLicense : Modified BSD\nWWW : https://bitbucket.org/weholt/django-mobilityhelpers\nStatus : Beta - Experimental.\n\n\nAbout\n-----\nMobility Helpers are a small reusable django app making it easier to target mobile platforms/devices. It comes as a piece of middleware\nand a helper function to render a view.\n\nIn short using a special function to render your views will detect requests from mobile devices and look for a special template for that devices. Normal clients\nwill get a normal template. So if you access a page with your tablet the app will use templatename.mobile.html to render the view instead of templatename.html.\n\n\nInstalltion\n-----------\n* pip install django-mobilityhelpers\n* add 'mobilityhelpers.middleware.MobileDetectionMiddleware' to your middleware section in settings.py\n* in your views do a 'from mobilityhelpers import smart_response'\n\nUsage\n-----\n\n* After installation your should have a 'is_mobile' property on your request instances. You can use this to tune your queryset etc. for mobile devices.\n* Instead of using render_to_response use smart_response(request, template_name, context_data).\n\n\nConfiguration options\n---------------------\n* You can settings.DISABLE_MOBILITY_HELPERS = False to disable rendering of templates aimed at mobile devices.\n* settings.DETECT_MOBILE_FLAVOUR = True will add a specific tag to the template being rendered, ie. for ipad ( the only supported device so far ) will\n render index.ipad.html instead of index.mobile.html when accessed with an iPad. All other supported mobile devices will use index.mobile.html.\n\n\nChangelog\n---------\n\n0.3.0 - Django 2.0 support\n\n0.2.0 - Python 3.x support.\n\n0.1.0 - Initial release.\n\n\nRequirements\n------------\n* django\n\n\nCredits\n-------\n* http://djangosnippets.org/snippets/2001/", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/weholt/django-mobilityhelpers", "keywords": "django middleware mobile devices", "license": "Modified BSD", "maintainer": "", "maintainer_email": "", "name": "Django-MobilityHelpers", "package_url": "https://pypi.org/project/Django-MobilityHelpers/", "platform": "", "project_url": "https://pypi.org/project/Django-MobilityHelpers/", "project_urls": { "Homepage": "https://github.com/weholt/django-mobilityhelpers" }, "release_url": "https://pypi.org/project/Django-MobilityHelpers/0.3.0/", "requires_dist": null, "requires_python": "", "summary": "Simple middleware and helper function to help handle request from mobile devices.", "version": "0.3.0" }, "last_serial": 3541716, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "4b6e14f6e2aaf0f5aa66280d1fc5f7df", "sha256": "36a97b31808c16f6d84013a0671378dc2cf5a12c218e5e4387af80e027cb3058" }, "downloads": -1, "filename": "Django-MobilityHelpers-0.1.0.zip", "has_sig": false, "md5_digest": "4b6e14f6e2aaf0f5aa66280d1fc5f7df", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8947, "upload_time": "2012-08-21T14:40:01", "url": "https://files.pythonhosted.org/packages/5a/2c/a09bec237581533308e0392814a258261d054fa18cb18ce25407ee960aaf/Django-MobilityHelpers-0.1.0.zip" } ], "0.1.0a": [ { "comment_text": "", "digests": { "md5": "75ef5c7f64a8011a22830672776d612a", "sha256": "042efc6fdcfa00c17ec8ed717cdaf4f6fed711a1386bb9b709db2a1d69c1ab2f" }, "downloads": -1, "filename": "Django-MobilityHelpers-0.1.0a.zip", "has_sig": false, "md5_digest": "75ef5c7f64a8011a22830672776d612a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8754, "upload_time": "2012-08-21T14:42:01", "url": "https://files.pythonhosted.org/packages/ce/90/0db169c6d96ea0947f426712bcb35ca2415b2474b195f024c9b7d8b8db6f/Django-MobilityHelpers-0.1.0a.zip" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "66c79111a43f5dc0037df7b010dc0bdf", "sha256": "9529cfedd855d459b94101932183f915920eb163db2be7d4c2f0566751a76a47" }, "downloads": -1, "filename": "Django-MobilityHelpers-0.2.0.zip", "has_sig": false, "md5_digest": "66c79111a43f5dc0037df7b010dc0bdf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7950, "upload_time": "2013-03-01T19:30:16", "url": "https://files.pythonhosted.org/packages/36/85/e8241375ce2e0cf1e99c57d6dafccebb66803a66187e5ea4d603c581012f/Django-MobilityHelpers-0.2.0.zip" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "203eb765572e70e63008aa73c4d3bf9c", "sha256": "3ea03140dcda789522da889f1aa6f32d315247858d160fabb5a25082a13e6509" }, "downloads": -1, "filename": "Django-MobilityHelpers-0.3.0.tar.gz", "has_sig": false, "md5_digest": "203eb765572e70e63008aa73c4d3bf9c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3621, "upload_time": "2018-02-01T14:18:12", "url": "https://files.pythonhosted.org/packages/b3/c4/becc0da3d096cf4245b63ac577e97cb4dc1c3991ffc608e33609aea73029/Django-MobilityHelpers-0.3.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "203eb765572e70e63008aa73c4d3bf9c", "sha256": "3ea03140dcda789522da889f1aa6f32d315247858d160fabb5a25082a13e6509" }, "downloads": -1, "filename": "Django-MobilityHelpers-0.3.0.tar.gz", "has_sig": false, "md5_digest": "203eb765572e70e63008aa73c4d3bf9c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3621, "upload_time": "2018-02-01T14:18:12", "url": "https://files.pythonhosted.org/packages/b3/c4/becc0da3d096cf4245b63ac577e97cb4dc1c3991ffc608e33609aea73029/Django-MobilityHelpers-0.3.0.tar.gz" } ] }