This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Project Description

django-mobile-views is a simple app to help detect mobile browsers and serve a different template for them.

It works by inspecting the user agent.

To use, either use one of the mobile generic views, or add the MobileMixin to your class based view.

from mobile_views.generic_views import MobileTemplateView

class HomePage(MobileTemplateView):
template_name = ‘myapp/home_page.html’ mobile_template_name = ‘myapp/mobile_home_page.html’

And that’s it!

There is also a ‘FullSiteView’ provided that when accessed will set a cookie to prevent being served the mobile template. The cookie lasts until browser close.

Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django-mobile-views-0.1.1.tar.gz (5.0 kB) Copy SHA256 Checksum SHA256 Source Jan 10, 2012

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting