views:

41

answers:

4

is it possible to develop mobile versions of webpages using turbogears.can someone please show me an example and how it is done.need it urgently.thanks

A: 

Yes, it is possible. TurboGears is just the server side technology, you can generate any type of presentation (HTML) from TurboGears. I recommend taking a look at some articles about developing mobile-friendly websites and/or this.

I don't think there is any example that anyone can show you of a mobile friendly TurboGears application, it will still look the same as any other TurboGears application. The final result will just have some different HTML output.

There is no magic bullet that will just make an existing website work for all mobile devices (that I know of). Good luck.

Matthew J Morrison
A: 

I'd recommend the Turbogears mailing list (or, the group on Google Groups), where you can get more specific answers from people who use Turbogears regularly.

Kylotan
+1  A: 

You may be wondering about how to direct people to a mobile site. In that case, you need to test against request.environ['HTTP_USER_AGENT']. You can then use conditionals to render the appropriate Mako or Genshi template depending on the result of that test. This isn't foolproof--HTTP_USER_AGENT can be (and often is) spoofed.

syrion
A: 

The simplest version of a "mobile site" is simply CSS. Display a simplified version of the site to USERAGENTS that are identified as mobile.

Lionel