| 1 | == Help for Developers Migrating from Django == |
| 2 | Sahana Eden is developed using [http://web2py.com Web2Py]. |
| 3 | |
| 4 | Web2Py 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 | |
| 9 | The basic MVC approach is the same with Models, Views & Controllers. |
| 10 | |
| 11 | Web2Py 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 | |
| 16 | The 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 | |
| 21 | Web2Py 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 | ---- |
| 25 | DeveloperGuidelines |