Is flask an mvc model and if yes give an example showing mvc pattern for your application?
Answer Posted / Parmanand Kumar
Yes, Flask is a web framework that follows the MVC design pattern. An example of implementing MVC in a Flask application could look like this:
- Model (Database): Database models representing User and Post entities.
- View (Templates): HTML templates for rendering user-friendly pages such as a list of posts, a user profile, etc.
- Controller (Flask app): A Flask application that handles incoming requests, processes the data, interacts with the Model, and renders appropriate views.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers