Changes between Initial Version and Version 1 of DeveloperGuidelines/DjangoMigration


Ignore:
Timestamp:
06/09/10 06:47:23 (12 years ago)
Author:
Fran Boon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DeveloperGuidelines/DjangoMigration

    v1 v1  
     1== Help for Developers Migrating from Django ==
     2Sahana Eden is developed using [http://web2py.com Web2Py].
     3
     4Web2Py was inspired by Django, amongst others, but redesigned to improve on it:
     5 * http://web2py.com/examples/static/web2py_vs_others.pdf
     6 * [http://www.web2py.com/AlterEgo/default/show/101 from Django to web2py]
     7 * [http://vimeo.com/6507384 Coding Django "polls" tutorial in web2py]
     8
     9The basic MVC approach is the same with Models, Views & Controllers.
     10
     11Web2Py is easier to create new pages in:
     12 * Automatic database migrations (by default, can be disabled)
     13 * No need to explicitly add routes to controller functions without arguments
     14 * No need to import core modules in each page - they are automatically available
     15
     16The execution model is:
     17 * All Models are loaded, in alphabetical order
     18 * The Controller is loaded
     19 * The View is parsed with a Dict of vars you pass to it & the Global vars (Session/Request/Response)
     20
     21Web2Py uses DAL instead of an ORM - this is lower-level with more SQL-like syntax.
     22 * it is possible to use [http://web2py.com/AlterEgo/default/show/189 SQLAlchemy models with Web2Py] but this isn't recommended within Sahana Eden
     23
     24----
     25DeveloperGuidelines