@app.route('/', methods=['GET', 'POST'])
def user_profile_name(username):
# return f"welcome to profile page {username}"
my_friends = database.GET_FRIENDS(connection, username)
# print(send_string)
return render_template(f"user_profile.html", friends=my_friends, account_name=username)
Вот мой HTML-код, который должен перейти к файлу с таким именем
{{account_name}}
Profile Picture
Изображение есть, и если я введу имя вручную, оно сработает. Есть идеи, как я могу отправить свое имя?
filename='#UserData/MY_NAME_HERE/profile/profile_pic.jpg')}}\" width='200' height='200'
Подробнее здесь: https://stackoverflow.com/questions/728 ... r-an-image
Мобильная версия