Skip to content

Commit

Permalink
Update settings.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Samar1110 authored Mar 6, 2024
1 parent b262425 commit 638ee82
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions auth3/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,9 @@
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'myproject',
'USER': 'myprojectuser',
'PASSWORD': 'password',
'NAME': 'ees24backend',
'USER': 'samarth',
'PASSWORD': 'ees24@Udyam',
'HOST': 'localhost',
'PORT': '',
}
Expand Down Expand Up @@ -179,6 +179,7 @@
# https://docs.djangoproject.com/en/5.0/howto/static-files/

STATIC_URL = 'static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'static/')

# Default primary key field type
# https://docs.djangoproject.com/en/5.0/ref/settings/#default-auto-field
Expand Down Expand Up @@ -241,7 +242,8 @@

CORS_ALLOWED_ORIGINS = (
"http://localhost:3000",
"https://ees2024.pythonanywhere.com"
"https://ees2024.pythonanywhere.com",
"64.227.189.197"
)

CORS_ALLOW_CREDENTIALS = True
Expand Down

0 comments on commit 638ee82

Please sign in to comment.