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

Ads future #194

Open
zeb81 opened this issue Jan 20, 2025 · 2 comments
Open

Ads future #194

zeb81 opened this issue Jan 20, 2025 · 2 comments

Comments

@zeb81
Copy link

zeb81 commented Jan 20, 2025

Readme

@zeb81
Copy link
Author

zeb81 commented Jan 20, 2025

app.py

from flask import Flask, render_template, request, redirect, url_for

app = Flask(name)

Page d'accueil

@app.route('/')
def home():
return render_template('index.html')

Gestion des stocks

@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)

Panier d'achat

@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)

@zeb81
Copy link
Author

zeb81 commented Jan 20, 2025

Readme

app.py

from flask import Flask, render_template, request, redirect, url_for

app = Flask(name)

Page d'accueil

@app.route('/')
def home():
return render_template('index.html')

Gestion des stocks

@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)

Panier d'achat

@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)

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