Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

http://localhost #59

Open
hujosh opened this issue Oct 18, 2016 · 3 comments
Open

http://localhost #59

hujosh opened this issue Oct 18, 2016 · 3 comments

Comments

@hujosh
Copy link

hujosh commented Oct 18, 2016

I have a view that redirects back to itself. For some reason, the redirect url in the response has http://localhost in front of it. Here is the code...

        delete = show_feedback_page.form.submit() 
        # The user should be redirected back to the show feedback page 
        self.assertRedirects(delete, self.url) 
        return  delete.follow() 

So I'm submitting a form which on success redirects. Why does the redirect url have http://localhost in front of it. I have other views which also redirect, but their redirect url's don't have http://localhost in front of them.

@gawel
Copy link
Member

gawel commented Oct 18, 2016

What is the bug here ? I guess django prefix urls with scheme / host when you're using a form library but not when you're using a redirect view.

@hujosh
Copy link
Author

hujosh commented Oct 19, 2016

I test another view which submits a form in the django-webtest code , and i don't have http://localhost in front of the redirect url.

@gawel
Copy link
Member

gawel commented Oct 19, 2016

Once again, I don't see a bug here. Can you provide an example where you're redirected to a full url when you should not ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants