Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
Binary file added backend/backend/__pycache__/__init__.cpython-313.pyc
Binary file not shown.
Binary file not shown.
Binary file added backend/backend/__pycache__/urls.cpython-313.pyc
Binary file not shown.
Binary file added backend/backend/__pycache__/wsgi.cpython-313.pyc
Binary file not shown.
29 changes: 23 additions & 6 deletions backend/backend/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,18 @@

# Database configuration
DATABASES = {
'default': dj_database_url.parse(
config('DATABASE_URL'), conn_max_age=600, ssl_require=True
)
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'postgres',
'USER': 'postgres.meqyrknhsgagvwkjotfh',
'PASSWORD': config('DATABASE_PASSWORD'),
'HOST': 'aws-0-us-west-1.pooler.supabase.com',
'PORT': '6543',
'OPTIONS': {'gssencmode': 'disable'},
'CONN_MAX_AGE': 500,
}
}




# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/5.1/howto/deployment/checklist/

Expand Down Expand Up @@ -69,6 +73,8 @@
"http://127.0.0.1:5173", # Alternative localhost format
]

CORS_ALLOW_CREDENTIALS = True

ROOT_URLCONF = 'backend.urls'

TEMPLATES = [
Expand Down Expand Up @@ -126,7 +132,18 @@

STATIC_URL = 'static/'

DEBUG = True

# Default primary key field type
# https://docs.djangoproject.com/en/5.1/ref/settings/#default-auto-field

DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'

EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_PORT = 587
EMAIL_USE_TLS = True
EMAIL_HOST_USER = 'toasttutorreach@gmail.com'
EMAIL_HOST_PASSWORD = 'wupofgoejcngvwob'

FRONTEND_BASE_URL = 'http://localhost:5173'
1 change: 1 addition & 0 deletions backend/backend/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"""
from django.contrib import admin
from django.urls import path, include
from toast_tutor.controller import auth

urlpatterns = [
path('admin/', admin.site.urls),
Expand Down
Loading