wiki:InstallationGuidelines/Developer/PostPython

Version 37 (modified by Dominic König, 7 years ago) ( diff )

--

After installing Python:

Install Web2Py

git clone https://github.com/web2py/web2py.git --recursive

As of 2017-09-13 Sahana does not support web2py 2.15.* - you need to revert to web2py-2.14.6.

(2018-01-22) Sahana now supports both web2py-2.14.6 (#cda35fd) and web2py-2.16.1 (#7035398) stable releases, so you can either:

cd web2py
# Reset to web2py-2.14.6
git reset --hard cda35fd
git submodule update

or:

cd web2py
# Reset to web2py-2.16.1
git reset --hard 7035398
git submodule update

Install Eden

Quick

If you are deploying Sahana Eden code base but do not intend on contributing any changes back to the core trunk (perhaps for a custom deployment) you can just clone the Trunk version of Eden:

cd web2py/applications
git clone https://github.com/sahana/eden.git

Note: the fact that we ensure that the name of the web2py application has no hyphen in, as otherwise it cannot run under Apache!

For Ongoing Development

If you intend to develop for Sahana Eden and have your code pulled into Trunk you need to follow the instructions Fork Your Own Sahana Eden Repository to be able to pull new updates and push changes.

Mac Users Note

To avoid an issue that you may encounter with ongoing coding which is explained in this stackoverflow.com thread, before running the command to clone the repo, make sure to run:

git config --global core.precomposeunicode true

Start Eden

To test your installation of Eden, without Eclipse, you can start web2py from the command line:

cd .. # the web2py main directory
python web2py.py

When you first start Eden, then the settings file web2py/application/eden/models/000_config.py will be created from web2py/application/eden/modules/templates/000_config.py. You will be unable to proceed until you edit this file. The minimal required change is to delete the line with FINISHED_EDITING_CONFIG_FILE = False.

If you want the Scheduler to run, then you'll need to start this separately: UserGuidelines/Scheduler

Test Eden

Once you have web2py running navigate to the server ( http://localhost:8000 by default ). From the web2py drop down menu navigate to "My Sites" and Select Eden. You should now be at the Eden homepage.

By default the 1st user to register will gain the Administrator role.

Install Eclipse

If you want a graphical debugger to set breakpoints & step through code then it is recommended to install Eclipse:

Developer Guidelines

Here are some Basic Developers Guidelines to help get you started. To see how to put your installation to work see DeveloperGuidelines

Note: See TracWiki for help on using the wiki.