Add django gis extension

This commit is contained in:
Dana Lambert 2021-10-15 14:31:52 +13:00
parent 68b1d80ffa
commit 6dfa65ee77
2 changed files with 12 additions and 1 deletions

View file

@ -37,6 +37,7 @@ INSTALLED_APPS = [
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.gis',
'rest_framework',
'corsheaders',
@ -81,7 +82,7 @@ WSGI_APPLICATION = 'right_tree.wsgi.application'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'ENGINE': 'django.contrib.gis.db.backends.postgis',
'NAME': 'right_tree',
'USER': 'postgres',
'PASSWORD': 'postgres',