Changes between Version 4 and Version 5 of GeoDjangoDebianLennyInstall


Ignore:
Timestamp:
10/24/2008 11:01:19 AM (6 years ago)
Author:
adamfast
Comment:

The page wasn't consistent with its database name. If you followed its instructions, it would fail as you try to create a DB based on a template DB that does not exist.

Legend:

Unmodified
Added
Removed
Modified
  • GeoDjangoDebianLennyInstall

    v4 v5  
    22
    33= Packages Installation =
    4 Debian Lenny is shiped with the needed packages and defaults to python2.5
     4Debian Lenny is shipped with the needed packages and defaults to python2.5
    55{{{
    66sudo apt-get install libgeos-3.0.0 proj postgis gdal-bin postgresql-8.3-postgis postgresql-8.3
     
    1111{{{
    1212$ sudo su - postgres
    13 $ createdb -E UTF8 template_postgis # Create the template spatial database.
    14 $ createlang -d template_postgis plpgsql # Adding PLPGSQL language support.
    15 $ psql -d template_postgis -f /usr/share/postgresql-8.3-postgis/lwpostgis.sql
    16 $ psql -d template_postgis -f /usr/share/postgresql-8.3-postgis/spatial_ref_sys.sql
    17 $ psql -d template_postgis # Enabling users to alter spatial tables.
    18 template_postgis=# GRANT ALL ON geometry_columns TO PUBLIC;
    19 template_postgis=# GRANT ALL ON spatial_ref_sys TO PUBLIC;
     13$ createdb -E UTF8 postgis_template # Create the template spatial database.
     14$ createlang -d postgis_template plpgsql # Adding PLPGSQL language support.
     15$ psql -d postgis_template -f /usr/share/postgresql-8.3-postgis/lwpostgis.sql
     16$ psql -d postgis_template -f /usr/share/postgresql-8.3-postgis/spatial_ref_sys.sql
     17$ psql -d postgis_template # Enabling users to alter spatial tables.
     18postgis_template=# GRANT ALL ON geometry_columns TO PUBLIC;
     19postgis_template=# GRANT ALL ON spatial_ref_sys TO PUBLIC;
    2020}}}
    2121
    2222= Testing the configuration =
    2323Make sure the new libraries are on the path, eventually logoff and sign in again.
    24 {{{
    25 export DJANGO_SETTINGS_MODULE=myproject.settings
    26 python
    27 }}}
    2824
    2925The following tests should run flawlessly.
     
    4036but you have to install libgdal1-dev deb package.
    4137
    42 
     38{{{
     39export DJANGO_SETTINGS_MODULE=myproject.settings
     40python
     41}}}
    4342{{{
    4443#!python
Back to Top