A Flask web application with 11 pages, each containing login forms that log submissions.
- Main index page with navigation to 11 sub-pages
- Individual login forms on each page
- Logging submissions to both terminal and file (submissions.log)
- Responsive design with modern CSS
- Easy navigation between pages
- Create a virtual environment:
python3 -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate- Install dependencies:
pip install -r requirements.txt- Run the application:
python app.py- Open your browser and navigate to:
http://localhost:5000
flask-multi-page-app/
├── app.py # Main Flask application
├── requirements.txt # Python dependencies
├── submissions.log # Login submissions log (created automatically)
├── templates/ # HTML templates
│ ├── base.html # Base template
│ ├── index.html # Home page
│ ├── page1.html # Page 1
│ ├── page2.html # Page 2
│ └── ... # Pages 3-11
└── static/ # Static files
└── css/
└── style.css # Stylesheet
- Navigate to http://localhost:5000 to see the home page
- Click on any page card to visit that page
- Each page has a login form
- Submissions are logged to both terminal and submissions.log file
- Use navigation buttons to move between pages
All login submissions are logged with:
- Timestamp
- Page name
- Username
- Password
Logs appear in:
- Terminal output
- submissions.log file
- Modify templates in the
templates/directory - Update styles in
static/css/style.css - Add new routes in
app.py