wiki:DeveloperGuidelines/DjangoMigration

Version 1 (modified by Fran Boon, 14 years ago) ( diff )

--

Help for Developers Migrating from Django

Sahana Eden is developed using Web2Py.

Web2Py was inspired by Django, amongst others, but redesigned to improve on it:

The basic MVC approach is the same with Models, Views & Controllers.

Web2Py is easier to create new pages in:

  • Automatic database migrations (by default, can be disabled)
  • No need to explicitly add routes to controller functions without arguments
  • No need to import core modules in each page - they are automatically available

The execution model is:

  • All Models are loaded, in alphabetical order
  • The Controller is loaded
  • The View is parsed with a Dict of vars you pass to it & the Global vars (Session/Request/Response)

Web2Py uses DAL instead of an ORM - this is lower-level with more SQL-like syntax.


DeveloperGuidelines

Note: See TracWiki for help on using the wiki.