Hi,<div><br></div><div>I tried installing GeoDjango on Ubuntu and assumed that GEOS and Proj existed on Linux and directly installed PostGIS.</div><div><br></div><div>Now I ran the<a href="https://code.djangoproject.com/wiki/GeoDjangoInstall#Third-PartyLibraryInstallationTests"> tests as given on the Django site</a>, and this is the output I am receiving</div>

<div><br></div><div><div>>>>from django.contrib.gis.tests import test_gdal</div><div>Traceback (most recent call last):</div><div>  File "<stdin>", line 1, in <module></div><div>  File "/home/smaranh/django-env/local/lib/python2.7/site-packages/django/contrib/gis/tests/__init__.py", line 2, in <module></div>

<div>    from django.test.simple import build_suite, DjangoTestSuiteRunner</div><div>  File "/home/smaranh/django-env/local/lib/python2.7/site-packages/django/test/__init__.py", line 5, in <module></div><div>

    from django.test.client import Client, RequestFactory</div><div>  File "/home/smaranh/django-env/local/lib/python2.7/site-packages/django/test/client.py", line 21, in <module></div><div>    from django.test import signals</div>

<div>  File "/home/smaranh/django-env/local/lib/python2.7/site-packages/django/test/signals.py", line 2, in <module></div><div>    from django.db import connections</div><div>  File "/home/smaranh/django-env/local/lib/python2.7/site-packages/django/db/__init__.py", line 11, in <module></div>

<div>    if DEFAULT_DB_ALIAS not in settings.DATABASES:</div><div>  File "/home/smaranh/django-env/local/lib/python2.7/site-packages/django/utils/functional.py", line 184, in inner</div><div>    self._setup()</div>

<div>  File "/home/smaranh/django-env/local/lib/python2.7/site-packages/django/conf/__init__.py", line 40, in _setup</div><div>    raise ImportError("Settings cannot be imported, because environment variable %s is undefined." % ENVIRONMENT_VARIABLE)</div>

<div>ImportError: Settings cannot be imported, because environment variable DJANGO_SETTINGS_MODULE is undefined.</div></div><div><div><br></div><div>Should I uninstall PostGIS and install GEOS and PROJ or should I install them over PostGIS? Also how do I uninstall PostGIS?</div>

<div><br></div>-- <br>
Thanks & Regards<div>Smaran Harihar</div><br>
</div>