Hi Rechard, I had the same issue some time ago, I solved it by defining the postgis version outside the database configuration, this is what I think will fix it for you
DATABASES = { 'default': { 'ENGINE': 'django.contrib.gis.db.backends.postgis', 'NAME': os.path.join(BASE_DIR, 'geodjango'), 'USER': 'richard', 'PASSWORD': 'editing', #'POSTGIS_VERSION': '(2.0.3)', } } POSTGIS_VERSION = (2.0.3) On Monday, August 11, 2014 1:46:53 PM UTC+1, richar...@spatialdays.com wrote: > > Hi all, > > I am a newbie to Django and in my settings.py file I have put in my > database config details as per below: > > DATABASES = { > 'default': { > 'ENGINE': 'django.contrib.gis.db.backends.postgis', > 'NAME': os.path.join(BASE_DIR, 'geodjango'), > 'USER': 'richard', > 'PASSWORD': 'editing', > 'POSTGIS_VERSION': '(2.0.3)', > } > } > > I am still getting the error message "Cannot determine PostGIS version" > etc. > > I have tried every conceivable variant of the POSTGIS_VERSION line but no > joy. > > I'm stuck - please help? > > Regards > Richard > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/da48fe70-d28b-4904-b957-3cd8b798d27b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.