Skip to content

Commit 1a277d7

Browse files
NishaNisha
authored andcommitted
Enhance the backend API
1 parent 01aeab2 commit 1a277d7

28 files changed

+19
-12
lines changed
119 Bytes
Binary file not shown.
123 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
1.16 KB
Binary file not shown.
1.17 KB
Binary file not shown.
540 Bytes
Binary file not shown.

pythonWORLDAPI/settings.py

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
# SECURITY WARNING: don't run with debug turned on in production!
2626
DEBUG = True
2727

28-
ALLOWED_HOSTS = []
28+
#For development purpose only
29+
ALLOWED_HOSTS = ['*']
2930

3031

3132
# Application definition
@@ -80,13 +81,13 @@
8081
# https://docs.djangoproject.com/en/3.0/ref/settings/#databases
8182

8283
DATABASES = {
83-
'default': {
84-
"ENGINE": "django.db.backends.postgresql_psycopg2",
85-
"NAME": "worldapi",
86-
"USER": "postgres",
87-
"PASSWORD": "localhost",
88-
"HOST": "localhost",
89-
"PORT": "5432",
84+
'default': {
85+
'ENGINE': 'django.db.backends.postgresql',
86+
'NAME': 'postgres',
87+
'USER': 'postgres',
88+
'PASSWORD': 'postgres',
89+
'HOST': 'db',
90+
'PORT': 5432,
9091
}
9192
}
9293

@@ -109,6 +110,10 @@
109110
},
110111
]
111112

113+
FIXTURE_DIRS = (
114+
'/react-django-graphQL-postgres/Fixtures/',
115+
)
116+
112117

113118
# Internationalization
114119
# https://docs.djangoproject.com/en/3.0/topics/i18n/
113 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)