I've set up a Django project on a nginx server. But..
Django detects
request.get_host()
in signup and activation views aslocalhost
and sends email (for activation and password reset) with links likehttp://localhost/...
.I've set up Facebook authorization via
social-auth-app-django
. But Facebook tries to open redirect_uri inlocalhost
(...redirect_uri=http:localhost/oauth/complete/facebook...
)Inside django admin TinyMCE editor Filebrowser also refers to
localhost
..
How to fix these problems? Or it seems one solution can fix all of them.
Thank you for your time and help.