prije dodavanja aplikacije

This commit is contained in:
2024-01-08 15:41:02 +01:00
parent b6454c5f78
commit b89fde9c92
6 changed files with 29 additions and 3 deletions

View File

@@ -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',