[Answer]-Django: Key 'urls' not found in <QueryDict: {}>

1👍

You should pick the data from request.POST when the request.method=='POST'. That is why you are having KeyError because the request method is GET. So you can do:

if request.method == 'POST':
    metaUrl = request.POST['urls']

Also make sure you are not redirecting from request_page view to results view as then the request will no longer be a POST request for results view.

Leave a comment