| 11 | | * install Xcode (from app store) |
| 12 | | * install !HomeBrew (from ruby script via !HomeBrew project homepage) |
| 13 | | * then: |
| 14 | | {{{ |
| 15 | | brew install postgresql |
| 16 | | brew install geos |
| 17 | | brew install proj |
| 18 | | brew install postgis |
| 19 | | brew install gdal |
| 20 | | brew install libgeoip |
| 21 | | }}} |
| 22 | | that's all based on the instructions at: https://docs.djangoproject.com/en/dev/ref/contrib/gis/install/#macports |
| 23 | | * then ran: |
| 24 | | {{{ |
| 25 | | initdb /usr/local/var/postgres |
| 26 | | }}} |
| 27 | | * had trouble running {{{createdb}}} because Mac OSX Lion now, apparently, comes with it's own Postgres installed, and, while {{{initdb}}} and {{{pg_ctl}}} were running the !HomeBrew versions, for some reason {{{createdb}}} was defaulting to the pre-packaged Max OSX version. To fix this I simply modified my path in {{{.bashrc}}} to put {{{/usr/local/bin}}} before all others. |
| 28 | | * Finally, after that, was able to create a spatial database based on the !GeoDjango documentation instructions: |
| 29 | | https://docs.djangoproject.com/en/dev/ref/contrib/gis/install/#creating-a-spatial-database-template-for-postgis [[br]] |
| 30 | | Note: this file is located in our project repository at: {{{urt/etc/sh/create_template_postgis-1.5.sh}}} |
| 31 | | * created a database for URT: |
| 32 | | {{{ |
| 33 | | createdb -T template_postgis urt |
| 34 | | }}} |
| 35 | | |
| 36 | | * then did a git clone, which now includes bootstrap.py [ProjectSetup#Git git instructions] |
| 37 | | something like: |
| 38 | | {{{ git clone rorys@rorys.webfactional.com:webapps/urt_src/repos/urt.git }}} |
| 39 | | * ran {{{python bootstrap.py}}}, which created {{{./bin/buildout}}} |
| 40 | | * ran {{{./bin/buildout}}}, which created all the buildout stuff including project dependencies (psycopg2, south, PIL, ) and etc |
| 41 | | * ran {{{./bin/django syncdb}}} and {{{./bin/django migrate}}} to create the project data model |
| 42 | | * and then finally just {{{./bin/django runserver}}} !! :) |
| | 11 | * this has been moved to here: DevelopmentEnvironmentSetup |