I am following the geodjango tutorial on djangoproject. I have
installed postgresql with postgis. and tested orginfo with GDAL
sucessfully. However, I am getting an error while running syncdb.

django.core.exceptions.ImproperlyConfigured: Could not import user-
defined GEOMETRY_BACKEND "geos".

I am unable to crack it as PostGIS already has geos folder in it and I
have given the right path.

below is my database config.

Any help would be greatly appreciated.

DATABASES = {
    'default': {
        'ENGINE': 'django.contrib.gis.db.backends.postgis', # Add
'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
        'NAME': 'geodjango',                      # Or path to
database file if using sqlite3.
        'USER': '',                      # Not used with sqlite3.
        'PASSWORD': '',                  # Not used with sqlite3.
        'HOST': '',                      # Set to empty string for
localhost. Not used with sqlite3.
        'PORT': '',                      # Set to empty string for
default. Not used with sqlite3.
    }
}

C:\Python27\Lib\site-packages\django\bin\geodjango>python manage.py
syncdb
Traceback (most recent call last):
  File "manage.py", line 14, in <module>
    execute_manager(settings)
  File "C:\Python27\lib\site-packages\django\core\management
\__init__.py", line
438, in execute_manager
    utility.execute()
  File "C:\Python27\lib\site-packages\django\core\management
\__init__.py", line
379, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "C:\Python27\lib\site-packages\django\core\management
\__init__.py", line
261, in fetch_command
    klass = load_command_class(app_name, subcommand)
  File "C:\Python27\lib\site-packages\django\core\management
\__init__.py", line
67, in load_command_class
    module = import_module('%s.management.commands.%s' % (app_name,
name))
  File "C:\Python27\lib\site-packages\django\utils\importlib.py", line
35, in im
port_module
    __import__(name)
  File "C:\Python27\lib\site-packages\django\core\management\commands
\syncdb.py"
, line 7, in <module>
    from django.core.management.sql import custom_sql_for_model,
emit_post_sync_
signal
  File "C:\Python27\lib\site-packages\django\core\management\sql.py",
line 6, in
 <module>
    from django.db import models
  File "C:\Python27\lib\site-packages\django\db\__init__.py", line 78,
in <modul
e>
    connection = connections[DEFAULT_DB_ALIAS]
  File "C:\Python27\lib\site-packages\django\db\utils.py", line 93, in
__getitem
__
    backend = load_backend(db['ENGINE'])
  File "C:\Python27\lib\site-packages\django\db\utils.py", line 33, in
load_back
end
    return import_module('.base', backend_name)
  File "C:\Python27\lib\site-packages\django\utils\importlib.py", line
35, in im
port_module
    __import__(name)
  File "C:\Python27\lib\site-packages\django\contrib\gis\db\backends
\postgis\bas
e.py", line 5, in <module>
    from django.contrib.gis.db.backends.postgis.operations import
PostGISOperati
ons
  File "C:\Python27\lib\site-packages\django\contrib\gis\db\backends
\postgis\ope
rations.py", line 8, in <module>
    from django.contrib.gis.geometry.backend import Geometry
  File "C:\Python27\lib\site-packages\django\contrib\gis\geometry
\backend\__init
__.py", line 14, in <module>
    '"%s".' % geom_backend)
django.core.exceptions.ImproperlyConfigured: Could not import user-
defined GEOME
TRY_BACKEND "geos".

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to