title: GeoIP + Django, Invalid GeoIP city data file
body: <p>This seemingly has no fix, I've read up on the previous bug which was apparently fixed 5 years ago <a href="https://code.djangoproject.com/ticket/11245" rel="nofollow">here</a>. Basically I've done everything completely properly according to the documents in both <a href="https://docs.djangoproject.com/en/1.6/ref/contrib/gis/geoip/" rel="nofollow">Django</a> and at <a href="http://dev.maxmind.com/geoip/legacy/install/city/" rel="nofollow">MaxMind</a>. </p>
  
  <p>I have specified my <code>GEOIP_PATH</code>, and have even tried specifying the files too using <code>GEOIP_CITY</code> but I still get the same traceback:</p>
  
  <pre><code>Traceback (most recent call last):
    File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 112, in get_response
      response = wrapped_callback(request, *callback_args, **callback_kwargs)
    File "/home/django/backend/apps/api/routes.py", line 98, in jsonp_wrapper
      resp = f(request, *args, **kwargs)
    File "/usr/lib/python2.7/dist-packages/django/views/decorators/csrf.py", line 57, in wrapped_view
      return view_func(*args, **kwargs)
    File "/home/django/backend/apps/api/routes.py", line 205, in userLogin
      userProfile.updateLocation(request)
    File "/home/django/backend/apps/agents/models.py", line 89, in updateLocation
      location = locationFromRequest(request)
    File "/home/django/backend/apps/agents/models.py", line 29, in locationFromRequest
      return g.city(ip)
    File "/usr/lib/python2.7/dist-packages/django/contrib/gis/geoip/base.py", line 159, in city
      enc_query = self._check_query(query, city=True)
    File "/usr/lib/python2.7/dist-packages/django/contrib/gis/geoip/base.py", line 148, in _check_query
      raise GeoIPException('Invalid GeoIP city data file: %s' % self._city_file)
  GeoIPException: Invalid GeoIP city data file
  </code></pre>
  
  <p>I'm just doing a simple test in a python shell to test using:</p>
  
  <pre><code>from django.contrib.gis.geoip import GeoIP
  g = GeoIP()
  g.city('google.com')
  </code></pre>
  
  <p><code>g.country('google.com')</code>  &lt;--- this works fine, note this problem is only with the CITY db I guess</p>
  
  <p>I did install the GeoIP C Library from apt, using <code>apt-get install libgeoip-dev</code>, which has apparently given me an older version <code>1.6.0-1</code> when the newest version is <code>1.6.2-1</code>. My Django version is 1.6.1 as well.</p>