initial react

This commit is contained in:
2024-03-05 11:22:39 -05:00
parent 91fce540d4
commit ffe3157b3c
27 changed files with 18894 additions and 52 deletions

View File

@@ -39,9 +39,11 @@ INSTALLED_APPS = [
"django.contrib.staticfiles",
"rest_framework",
"pokemans_app",
"corsheaders",
]
MIDDLEWARE = [
"corsheaders.middleware.CorsMiddleware",
"django.middleware.security.SecurityMiddleware",
"django.contrib.sessions.middleware.SessionMiddleware",
"django.middleware.common.CommonMiddleware",
@@ -123,3 +125,10 @@ STATIC_URL = "static/"
# https://docs.djangoproject.com/en/4.2/ref/settings/#default-auto-field
DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"
# cors
CORS_ALLOWED_ORIGINS = [
"http://localhost:3000"
]

Binary file not shown.