For what you describe, you're not looking for "global" variables in the sense that you want some value persisted in the same process. You're looking at session variables, which are variables persisted for a specific user session.
See: http://docs.djangoproject.com/en/dev/topics/http/sessions/ Honestly though, the easiest way that I can think of is just to use separate URLs. That way, a user could easily use the PC version if he desires. -- dz On Mon, Aug 17, 2009 at 3:28 AM, Steve Patrick<steve.patrick.mar...@gmail.com> wrote: > > I`ve got an application developed for PCs and I want to make it > available for mobile devices. There are only some slight differences > between booth two versions, so I think is not worth while to develope > different applications. Instead, I've decided to develope an only > application in which I need a "global" variable that helps me to > remember if the user is using a mobile device or a PC (I know it on my > firts page, looking at the user agent). How can I store that > variable?? Of course, if different users connect to the application > they would have different user agents and thus, different values for > that "global" variable I want to use. > Thanks for your time > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---