I faced the above mentioned problem when I forgot to pass a keyword argument name to url() function.
Code with error
url(r"^testing/$", views.testing, "testing")
Code without error
url(r"^testing/$", views.testing, name="testing")
So finally I removed the above error in this way. It might be something different in your case. So check your url patterns in urls.py.