Python is a high-level scripting language suitable for rapid application development. It has a wealth of powerful libraries available. If you're interested in learning more about Python outside of our code, refer to these excellent Python resources:
- Dive Into Python (http://diveintopython.org)
- How to Think like a Computer Scientist (http://openbookproject.net/thinkcs/python/english3e/)
Web2Py is a simple yet powerful framework to allow people to rapidly develop secure real world applications. We like the Official Web2Py book (http://web2py.com/book) as a resource.
Here are a few tips about Web2Py:
- All Models are executed during every request in alphabetical order within web2py environment
- The Controller is executed
- The View template is parsed
- (HTML) page returned to client
Tip 1: Python Modules are not reloaded for every request, so if changes are made to these files then you would need to restart Web2Py to see the differences.
Tip 2: Because all the models are executed during every request, the code added there should be optimized - search for 'conditional model loading' in the code for guidance on how to do this.
jQuery offers a simple way of adding unobtrusive client-side interactivity to widgets. It has a wealth of plugins available (some of which we copy to static/scripts/S3, the Amazon Simple Storage Service) and excellent documentation at http://docs.jquery.com
ExtJS provides some very advanced UI components that are primarily used for the Map. It has a wealth of plugins available (some of which we copy to static/scripts/S3, the Amazon Simple Storage Service) and excellent documentation at http://docs.sencha.com/ext-js/3-4/.
Sahana Eden Build and Debug Tips
settings.base.debug = True
Tip: It is also possible to quickly view a single page in debug mode by adding the ?debug=1 variable to the end of a URL.