server is running proper!

This commit is contained in:
nprasad2077 committed 2023-04-21 20:24:36 -05:00
1 parent c4ff08279d
commit b7720ca138
1 file changed
+8 -1
+8 -1
View File
@@ -34,7 +34,7 @@ SECRET_KEY = SECRET_DJANGO
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
ALLOWED_HOSTS = []
ALLOWED_HOSTS = ['*']
# Application definition
@@ -43,6 +43,7 @@ INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'nba_data',
'corsheaders',
'rest_framework',
'django.contrib.contenttypes',
'django.contrib.sessions',
@@ -51,6 +52,7 @@ INSTALLED_APPS = [
]
MIDDLEWARE = [
'corsheaders.middleware.CorsMiddleware',
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
@@ -142,3 +144,8 @@ REST_FRAMEWORK = {
'PAGE_SIZE': 100, # Adjust this value according to the number of records you want to display per page
}
CORS_ALLOWED_ORIGINS = [
"http://localhost:5173", # Replace this with the origin of your frontend app
]