title: how to allow users from a specific country using django?
body: <p>I am trying to only allow user from specific country say USA. I think it ca be implemented as follows:-</p>
  
  <pre><code>def redirect_based_on_ip(request):
      ip = request.meta['REMOTE_ADDR']
      if ip == SOMETHING:
          return HttpResponseRedirect('/something')
      else:
          return HttpResponseRedirect('/something_else')
  </code></pre>
  
  <p>Can is simply insert USA in place of SOMETHING or i need some code?</p>