Code


Version 3 (modified by tommi, 5 years ago) (diff)

--

These instructions apply for Fedora 10 and GeoDjango on django1.0.1 and mysql 5.0.67. These are the problems I ran into trying to get GeoDjango running

Third Party Library Installation

Install the geos library

$ yum install geos-python

Install PROJ.4 and GDAL according to the main installation page

Test that the GEOS libraries are where they should be by changing to a django project directory and importing the models from django.contrib.gis.db

$ python manage.py shell
Python 2.5.2 (r252:60911, Sep 30 2008, 15:41:38) 
[GCC 4.3.2 20080917 (Red Hat 4.3.2-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> from django.contrib.gis.db import models