Forum Archive

How would you structure a project following MVC pattern?

OliverGomes

Using UI and Pythonista and coming from Ruby on Rails, I’m having a hard time structuring a simple project because of the lack of conventions, I don’t like creating a single big file with a ton of code in it, I would rather divide my files logically by MVC (Model, View, Controller)

Are there any examples of projects involving UI in a MVC way where I could clearly see where UI files should go, what the “main” script should import etc.?

ccc

https://cookiecutter.readthedocs.io/en/latest/readme.html#python is a tool that generates Python projects and their templates are models worth checking out