This repository contains a simple Flask-based Python application developed by Harsha Vinjamuri. It demonstrates basic web application concepts using Flask, including routing, templating, and form handling. There are Some Lecture codes for Learning Python-Flask.
- Lightweight Flask application structure
- URL routing and view functions
- Templating using Jinja2
- Example of form handling (using Flask-WTF if needed)
- Organized project structure with templates and static assets
-
Clone the repository:
git clone https://github.com/HARSHAVINJAMURI/Flask-Python.git cd Flask-Python
-
Create a virtual environment:
python -m venv venv
-
Activate the virtual environment:
- On Windows:
venv\Scripts\activate
- On macOS/Linux:
source venv/bin/activate
- On Windows:
-
Install the dependencies:
pip install -r requirements.txt
To start the Flask application, run:
python app.py
- Then, open your browser and navigate to http://127.0.0.1:5000.
Flask-Python/
│
├── app.py # Main Flask application file
├── templates/ # HTML templates (e.g., index.html)
├── static/ # Static assets (CSS, JavaScript, images)--- optional
├── requirements.txt # List of Python dependencies
└── README.md # Project documentation
- Contributions to improve the application are welcome. Feel free to fork the repository and submit pull requests with your enhancements.
- This project is licensed under the MIT License. See the LICENSE file for details.