A simple E-commerce website using Flask.
- Python3
- Flask
- Sqlite
- Set up database by running database.py
- Run main.py
- Enter localhost:5000 in the browser.
A simple implementation of a fully functional Shopping Cart.
You're making the exact same mistake that a massive company (LinkedIn) made here boi. Fix this shit!
https://github.com/Durgaprasad-Nagarkatte/Simple-Flask-Shopping-Cart/blob/master/main.py
lines:
139, 141, 286, 335
Learn to salt your passwords and use something more secure than MD5!
Using a database Object Relational Mapper (ORM) makes the site easier to scale and minimizes errors that can arise from incorrect SQL querries.
Also, an ORM makes the site more secure as it is a quick and easy way of preventing common SQL Injection attacks
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.