it pretty much works from PythonAnywhere, except it doesn't put data in the
vars correctly . Data looks like this with strange letter "u" in front:
{u'loc': u'38.5249,-121.9708', u'city': u'Winters', u'country': u'US',
u'region': u'California', u'hostname': u'No Hostname', u'ip':
u'108.70.229.156', u'org': u'AS7018 AT&T Services, Inc.', u'postal':
u'95694'}
<type 'exceptions.NameError'> name 'city' is not defined
how to get clean data in the vars? It did not accept location_data.city or
location_data[city] either
thanks,
Alex
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.