onaio / onadata

Collect, Analyze and Share
https://ona.io
Other
183 stars 133 forks source link

error after manage.py #805

Closed allankaranja closed 4 years ago

allankaranja commented 8 years ago

File "/usr/lib/python2.7/dist-packages/django/db/utils.py", line 199, in getitem conn = backend.DatabaseWrapper(db, alias) File "/usr/lib/python2.7/dist-packages/django/contrib/gis/db/backends/postgis/base.py", line 11, in init self.ops = PostGISOperations(self) File "/usr/lib/python2.7/dist-packages/django/contrib/gis/db/backends/postgis/operations.py", line 158, in init if self.spatial_version < (1, 3, 4): File "/usr/lib/python2.7/dist-packages/django/utils/functional.py", line 49, in get res = instance.dict[self.func.name] = self.func(instance) File "/usr/lib/python2.7/dist-packages/django/contrib/gis/db/backends/postgis/operations.py", line 258, in spatial_version 'template?' % self.connection.settings_dict['NAME'] django.core.exceptions.ImproperlyConfigured: Cannot determine PostGIS version for database "DB_NAME". GeoDjango requires at leas t PostGIS version 1.3. Was the database created from a spatial database template?

Aha! Link: https://ona.aha.io/features/PROD-679

wazamog commented 8 years ago

This solution should sort you out, give it a try https://github.com/django/django/pull/4796/files

allankaranja commented 8 years ago

thank you it works with the instructions in the link

On Wed, Apr 20, 2016 at 2:45 AM, wazamog notifications@github.com wrote:

This solution should sort you out, give it a try https://github.com/django/django/pull/4796/files

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/onaio/onadata/issues/805#issuecomment-212173018

DavisRayM commented 4 years ago

This doesn't seem like an issue any more. Closing it for now, please reopen if it's need once again.