Skip to content

Commit

Permalink
final deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
D4rkLght committed Dec 11, 2023
1 parent 5d24e6d commit 486c477
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
SECRET_KEY=SOMETHING_REALLY_SECRET
DEBUG=True
ALLOWED_HOSTS=localhost,127.0.0.1
URL_FRONTEND=http://localhost:3000
URL_LOCAL=http://localhost
URL_DOMEN=http://DOMEN

# Конфигурация базы данных PostgreSQL
POSTGRES_ENGINE=django.db.backends.postgresql
Expand Down
6 changes: 3 additions & 3 deletions backend/core/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@
]

CORS_ALLOWED_ORIGINS = [
"http://localhost:3000",
"http://62.84.123.59",
"http://localhost"
env.str("URL_FRONTEND", default="http://FRONTEND"),
env.str("URL_LOCAL", default="http://LOCAL"),
env.str("URL_DOMEN", default="http://DOMEN"),
]

ROOT_URLCONF = "core.urls"
Expand Down

0 comments on commit 486c477

Please sign in to comment.