prije dodavanja aplikacije
This commit is contained in:
Binary file not shown.
@@ -17,7 +17,8 @@ BASE_DIR = Path(__file__).resolve().parent.parent
|
||||
|
||||
# dodano
|
||||
import os
|
||||
import GDAL
|
||||
from osgeo import gdal
|
||||
|
||||
|
||||
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||
|
||||
@@ -53,6 +54,7 @@ INSTALLED_APPS = [
|
||||
'django.contrib.staticfiles',
|
||||
'rest_framework',
|
||||
'plovidba_aplikacija',
|
||||
'django.contrib.gis',
|
||||
]
|
||||
|
||||
MIDDLEWARE = [
|
||||
@@ -91,7 +93,7 @@ WSGI_APPLICATION = 'plovidba_projekt.wsgi.application'
|
||||
|
||||
DATABASES = {
|
||||
'default': {
|
||||
'ENGINE': 'django.contrib.gis.db.backends.postgis',
|
||||
'ENGINE': 'django.db.backends.postgresql',
|
||||
'NAME': 'plovidba_db',
|
||||
'USER': 'postgres',
|
||||
'PASSWORD': 'postgres',
|
||||
|
||||
Reference in New Issue
Block a user