Skip to content

Don't know how to redirect to right redirect_uri. Use gunicorn + nginx + django1.7 #420

@miukal

Description

@miukal

I can use python-social-auth with no problem in my local environment.
When I try to deploy the server code online with domain http://app.mydomain.com, I got some problems.

I set REDIRECT URI in instagram backend to http://app.mydomain.com, and add some settings in the settings file: (I got the settings from here)

SOCIAL_AUTH_LOGIN_REDIRECT_URL = 'http://app.mydomain.com/'
SOCIAL_AUTH_SANITIZE_REDIRECTS = False

But the redirect_uri sent from my server is still http://127.0.0.1:8000. I think that's from gunicorn? but I don't know what's the best way to change that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions