<p>Could you post your settings.py please? I think it's a problem with the database section.</p>
<div class="gmail_quote">Le 24 avr. 2012 19:03, "Smaran Harihar" <<a href="mailto:smaran.harihar@gmail.com">smaran.harihar@gmail.com</a>> a écrit :<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
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" target="_blank">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>
<br>_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a><br>
<a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br>
<br></blockquote></div>