Is flask an mvc model and if yes give an example showing mvc pattern for your application?
Answer / 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 |
What is mvc and mvvm?
Is forms authentication possible in mvc? If yes then explain in detail how?
What is mvvm mvc?
Explain what is routing? What are the three segments for routing is important?
Mention what filters are executed in the end?
What does mvc mean?
What is mvc and why it is used?
What are main benefits of using mvc?
Steps for the execution of an MVC project?
What is crud mvc?
What is the difference between view and partial view?
Explain user authentication and authorizeattribute in mvc?