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

Trying to display product info in HTML productDescription.html with no result #5

Open
anatolil001 opened this issue Sep 20, 2023 · 0 comments

Comments

@anatolil001
Copy link

Hi there!
I'm a bit confused with displaying product card (info) using @app.route ('/productDescription') and corresponding HTML page productdescription.html.

As far as I understand, the value of productid should be passed to URL address ('/productDescription?productid') with the according data retrieved from POSTGRESQL and displayed on corresponding HTML page - which never happened. For some reason flask cannot find this page, though, when I used

return request.args.get('productid')

the system takes me to the proper ('/productDescription?productid') page, say with productid=1, meanwhile it shows one and only productid value with no other required information from query.

I would appreciate if you give me the proper direct answer and guide!
Thank you in advance
Best regards
Anatoli

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

1 participant