#16796: isMobile() should be added to request objects
-----------------------------------------+-------------------------------
               Reporter:  anonymous      |          Owner:  nobody
                   Type:  New feature    |         Status:  new
              Milestone:                 |      Component:  HTTP handling
                Version:  1.3            |       Severity:  Normal
             Resolution:                 |       Keywords:
           Triage Stage:  Someday/Maybe  |      Has patch:  0
    Needs documentation:  0              |    Needs tests:  0
Patch needs improvement:  0              |  Easy pickings:  0
                  UI/UX:  0              |
-----------------------------------------+-------------------------------

Comment (by lukeplant):

 I'm going to mark as WONTFIX, because:

 1. there is no obviously correct consensus on how to do the user-agent
 sniffing, or even consensus on whether this is the right approach at all,
 depending on what you are going to do with 'is_mobile'. AFAICS,
 'is_mobile' takes a set of abilities that devices may have, each of which
 has to be represented by a large spectrum, and reduces them all to a
 single boolean, which is of dubious value for many uses.

 2. Unlike with other things that are in contrib, there is no great problem
 caused by different solutions to this problem, so there is no reason for
 this to go in core/contrib.

 3. As soon as we added this functionality, we would be taking on the
 burden of maintaining a database of user agent strings for 'mobiles' (and
 defining what that means).

 This should remain as a snippet, or 3rd party solution.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/16796#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to