We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Readme
The text was updated successfully, but these errors were encountered:
from flask import Flask, render_template, request, redirect, url_for
app = Flask(name)
@app.route('/') def home(): return render_template('index.html')
@app.route('/products') def products(): # Exemple de liste de produits products = [ {'name': 'Produit 1', 'price': 10, 'stock': 100}, {'name': 'Produit 2', 'price': 20, 'stock': 50}, ] return render_template('products.html', products=products)
@app.route('/cart') def cart(): cart_items = [ {'name': 'Produit 1', 'price': 10, 'quantity': 2}, ] return render_template('cart.html', cart_items=cart_items)
if name == 'main': app.run(debug=True)
Sorry, something went wrong.
No branches or pull requests
Readme
The text was updated successfully, but these errors were encountered: