I have this view where I execute a redirect to an external site:
call=redpagopa(urlpa) # call of the redirect function, redirect doesn't work
where urlpa is the url passed to the function redpagopa..in this code I explicited the address for example google.
But the redirect doens't work.
If I create an url entry in urls.py:
url(r'^redpagopa/$', 'mopa.views.redpagopa', name='redpagopa')
and in the browser I give the address: http://example.com/redpagopa the redirect works.
I need when redirect is called, the browser be redirect on the specified url. There is some error in my code?
I use Django v1.3, version mandatory.