This project demonstrates the difference between cookies and sessions in a Python web application using Flask. It includes a simple form to generate random user data, which is then stored in a session. The project also features dynamic, recursive comments to simulate real-world interactions.
- Generate random user data
- Store data in session (server-side)
- Display data with flash messages
- Responsive design for mobile devices
- Dynamic, recursive comments
-
Ensure you have the necessary packages installed:
pip install flask flask-wtf
-
Run the Flask application:
python main.py
-
Access the application in your web browser:
- Navigate to
http://127.0.0.1:5000/
.
- Navigate to
This is the main file for the Flask application. It sets up routes for generating and displaying random user data, and includes functionality for recursive flash messages.
This file contains the HTML template for the index page, where users can generate random data.
This file contains the HTML template for displaying the generated data and dynamic comments.
This file contains the CSS for styling the application, including responsive design for mobile devices.
This project is licensed under the MIT License. See the LICENSE file for details.