using django urlencode method