Hi,<div><br></div><div>I am really fed up in setting up and running GeoDjango.</div><div><br></div><div>The first step was to setup the Spatial Database in PostGIS which I was really banging my head when it came to OS X. So i shifted to Ubuntu 11.10 and it seemed it was quite easy. Now having completed the <a href="https://docs.djangoproject.com/en/dev/ref/contrib/gis/install/#creating-a-spatial-database-template-for-postgis">post installation process</a>, I created the required changes that need to be done in the settings.py and now i am trying to,</div>
<div><br></div><div>python manage.py sqlall world</div><div><br></div><div>but it is returning a bunch of errors.</div><div><br></div><div><div>(django-env)smaranh@ubuntu:~/geodjango$ python manage.py sqlall world</div><div>
Traceback (most recent call last):</div><div> File "manage.py", line 10, in <module></div><div> execute_from_command_line(sys.argv)</div><div> File "/home/smaranh/django-env/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 443, in execute_from_command_line</div>
<div> utility.execute()</div><div> File "/home/smaranh/django-env/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 382, in execute</div><div> self.fetch_command(subcommand).run_from_argv(self.argv)</div>
<div> File "/home/smaranh/django-env/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 261, in fetch_command</div><div> klass = load_command_class(app_name, subcommand)</div><div> File "/home/smaranh/django-env/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 69, in load_command_class</div>
<div> module = import_module('%s.management.commands.%s' % (app_name, name))</div><div> File "/home/smaranh/django-env/local/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module</div>
<div> __import__(name)</div><div> File "/home/smaranh/django-env/local/lib/python2.7/site-packages/django/core/management/commands/sqlall.py", line 4, in <module></div><div> from django.core.management.sql import sql_all</div>
<div> File "/home/smaranh/django-env/local/lib/python2.7/site-packages/django/core/management/sql.py", line 6, in <module></div><div> from django.db import models</div><div> File "/home/smaranh/django-env/local/lib/python2.7/site-packages/django/db/__init__.py", line 40, in <module></div>
<div> backend = load_backend(connection.settings_dict['ENGINE'])</div><div> File "/home/smaranh/django-env/local/lib/python2.7/site-packages/django/db/__init__.py", line 34, in __getattr__</div><div>
return getattr(connections[DEFAULT_DB_ALIAS], item)</div><div> File "/home/smaranh/django-env/local/lib/python2.7/site-packages/django/db/utils.py", line 92, in __getitem__</div><div> backend = load_backend(db['ENGINE'])</div>
<div> File "/home/smaranh/django-env/local/lib/python2.7/site-packages/django/db/utils.py", line 44, in load_backend</div><div> raise ImproperlyConfigured(error_msg)</div><div>django.core.exceptions.ImproperlyConfigured: 'django.contrib.gis.db.backends.postgis' isn't an available database backend.</div>
<div>Try using django.db.backends.XXX, where XXX is one of:</div><div> 'dummy', 'mysql', 'oracle', 'postgresql_psycopg2', 'sqlite3'</div><div>Error was: No module named psycopg2.extensions</div>
</div><div><br></div><div><br></div><div>Really need your help guys.</div><div><div><br></div>-- <br>Thanks & Regards<div>Smaran Harihar</div><br>
</div>