mvc denote structure python


i'm carrying problems structuring classes denote biased an mvc settlement python app. matter i spin things, i keep controlling spin imports. here's i have:



model/__init__p.y




  • should reason denote category names so
    i "from denote import user"
    e.g. controller unit
    test case



model/database.py




  • holds database class

  • needs import denote classes orm

  • initialization should achieved initial way import, i.e. additional init calls instantiations (all methods database category @classmethods)



model/user.py




  • contains user denote class

  • needs opening database category queries

  • should get bottom category common denote classes share functionality (database persistency methods, parameter validation formula etc.)



i have nonetheless genuine universe python app contracting mvc, proceed substantially un-pythonic (and presumably language-agnostic disaster tip that...) - any suggestions solve this?



thanks, simon



Comments

Popular posts from this blog

list macos calm editors formula editors

how i practical urls indicate .aspx pages asp.net deployed an iis? (preferably but iis)

jaxb - xjc - reworking generated typesafe enum category members