Skip to content

Commit 6d4103f

Browse files
committed
enable postgres backend; closes #14
1 parent 4ab0255 commit 6d4103f

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

openNPL/settings.py

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,10 @@
110110
WSGI_APPLICATION = 'openNPL.wsgi.application'
111111

112112
DATABASES = {
113-
'default': {
114-
'ENGINE': 'django.db.backends.sqlite3',
115-
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
116-
}
113+
# 'default': {
114+
# 'ENGINE': 'django.db.backends.sqlite3',
115+
# 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
116+
# }
117117
# 'default': {
118118
# 'ENGINE': 'django.contrib.gis.db.backends.postgis',
119119
# 'NAME': 'opennpl',
@@ -122,6 +122,14 @@
122122
# 'HOST': 'localhost',
123123
# 'PORT': '5433',
124124
# }
125+
'default': {
126+
'ENGINE': 'django.db.backends.postgresql',
127+
'NAME': 'opennpl', # Replace with your database name
128+
'USER': 'opennpluser', # Replace with your database username
129+
'PASSWORD': 'opennpluser', # Replace with your database password
130+
'HOST': 'localhost', # Database host
131+
'PORT': '5432', # Default PostgreSQL port
132+
}
125133
}
126134

127135
DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'

0 commit comments

Comments
 (0)