title: Decode an encoded url in Django
body: <p>I am trying to send an encoded request to a Django server.</p>
  
  <pre><code> import urllib
   params = urllib.urlencode({'msg':'encoded message'})
   f = urllib.urlopen("http://my.django.server", params) # Send request using POST
  </code></pre>
  
  <p>On the server side, I have the proper urlpattern in urls.py:</p>
  
  <pre><code>url(r'^msg/', 'myapp.views.msg', name='msg')
  </code></pre>
  
  <p>and method in views.py:</p>
  
  <pre><code>def msg(request):    
      if request.method == 'POST':
          message = request.POST.get('msg',None)
  </code></pre>
  
  <p>But I am getting a 404 error while accessing this url using the above way to access url. Most probably this is because Django is not able to match regex from encoded url. How can I decode this url at Django and make the flow work properly?</p>
  
  <p>Python: 2.6.6</p>
  
  <p>Django: 1.4.14</p>