I want to pass a URL from javascript to a django view. I have the following urls.py
--- urls.py ---
url(r'^show/(?P<url>\.+)$', 'myapp.views.jsonProcess'),
The view has the following declaration:
--- views.py ---
def jsonProcess(request, url):
The URL I pass in javascript is as follows:
url = 'http://127.0.0.1:8000/show/' + 'http://www.google.com';
window.open(url);
I get a "Page not Found (404)" error while matching the URL. What am I missing? Any, and all pointers are welcome since I am hopelessly stuck! :(