Answer the question
In order to leave comments, you need to log in
Is it possible to use a port in flask when reditect?
I launched the site in ubuntu server 14.04
using apache 80
nginx port 8080
I launched the site in nginx and when redirecting "/" it refers to port 80, otherwise it works on port 8080.
flask code example
@app.route('/logout')
def logout():
# удалить из сессии имя пользователя, если оно там есть
session.pop('email', None)
return redirect('/')
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question