django-mobile icon indicating copy to clipboard operation
django-mobile copied to clipboard

Detect mobile browsers and serve different template flavours to them.

Results 29 django-mobile issues
Sort by recently updated
recently updated
newest added

This PR adds two new settings, `FLAVOURS_COOKIE_AGE` and `FLAVOURS_COOKIE_DOMAIN`, which allow the maximum age and domain for the flavour cookie to be customized if desired.

We got a client complaining about mobile pages showing up for desktop browsers. Turned up that he uses a Varnish-backed server, and django-mobile serves pages based on `User-Agent` if `MobileDetectionMiddleware`...

I try in view: if self.request.flavour == "mobile": print self.request.flavour olways 'full' in view and in template request.flavour == "mobile" class SetFlavourMiddleware(object): def process_request(self, request): _init_flavour(request) # it's not initialise...

Android devices are not getting mobile version. So add 'android' string to match string.

I've integrated django-mobile into my website along with Django Cache enabled but I noticed that the per-page-cache were not read and the framework sends database queries even though the pages...

I needed a template directory schema where the flavor prefix cames after the last slash, like in: `/appname/{flavor}-template_name.html` Then created the `FLAVOURS_TEMPLATE_NAMEGETTER`, to be able to have such schema. Example:...