Advertisement
Guest User

Untitled

a guest
May 10th, 2013
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. hazel@Belphegor:~/Programación/Git/Bateea/main$ python3 manage.py shell
  2. Python 3.2.3 (default, May 6 2013, 01:46:35)
  3. [GCC 4.7.2] on linux2
  4. Type "help", "copyright", "credits" or "license" for more information.
  5. (InteractiveConsole)
  6. >>> from django.contrib.gis.geoip import GeoIP
  7. >>> g = GeoIP()
  8. >>> g.country('google.com')
  9. Traceback (most recent call last):
  10. File "<console>", line 1, in <module>
  11. File "/usr/local/lib/python3.2/dist-packages/django/contrib/gis/geoip/base.py", line 194, in country
  12. return {'country_code' : self.country_code(query),
  13. File "/usr/local/lib/python3.2/dist-packages/django/contrib/gis/geoip/base.py", line 169, in country_code
  14. if ipv4_re.match(query):
  15. TypeError: can't use a string pattern on a bytes-like object
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement