Very helpful.

Are there any suggested "best practices" for determining how to
display a page? For example, in displaying a wine bottle I'd like to
have a mobile friendly page and a full page for online visitors. Do I
just switch off of the HTTP_USER_AGENT?

Guidance much appreciated!


On Mar 16, 9:05 am, Joe Bowman <bowman.jos...@gmail.com> wrote:
> import os
>
> os.environ['REMOTE_ADDR'] is the IP
> os.environ['HTTP_USER_AGENT'] is the user agent
>
> I'm sure there's more, those are the two I needed when I created the
> sessions utility.
>
> Note: I've found that they don't always populate, more than likely a
> perbrowserissue. I was confused to see REMOTE_ADDR not always
> populate.
>
> On Mar 15, 12:06 pm, xml2jsonp <davide.rogn...@gmail.com> wrote:
>
> > Using JavaScript:
>
> > if (/msie/.test(navigator.userAgent.toLowerCase())
> > && !/opera/.test(navigator.userAgent.toLowerCase())) {
> > [...]
>
> > On Mar 15, 7:56 am, jago <java.j...@gmail.com> wrote:
>
> > > Hi,
>
> > > Can I write some Python code that creates an HTML which prints if the
> > > client is running Firefox or IE ?
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to