diff --git a/.gitignore b/.gitignore index 2eea525..d7c6a3e 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -.env \ No newline at end of file +.env +keys diff --git a/backend/right_tree/settings.py b/backend/right_tree/settings.py index 1a9b95f..4af7ea3 100644 --- a/backend/right_tree/settings.py +++ b/backend/right_tree/settings.py @@ -28,11 +28,10 @@ SECRET_KEY = os.getenv("DJANGO_SECRET_KEY", 'django-insecure-5t05qc2&14xuot4lgs# DEBUG = os.getenv('DJANGO_DEBUG_MODE', '') != 'False' # os.getenv("ALLOWED_HOSTS", "").split(","), -ALLOWED_HOSTS = (BASE_URL,) +ALLOWED_HOSTS = [BASE_URL, "localhost"] # Application definition - INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', diff --git a/dev b/dev index 93896e4..c5ae9ec 100755 --- a/dev +++ b/dev @@ -91,7 +91,7 @@ cmd_build() { } cmd_start() { - docker-compose up + docker-compose up --remove-orphans } cmd_create_staticfiles() { diff --git a/frontend/src/config.js b/frontend/src/config.js index 879120f..60399ab 100644 --- a/frontend/src/config.js +++ b/frontend/src/config.js @@ -1 +1 @@ -export const API_URL = "http://localhost:8000"; +export const API_URL = "http://localhost:8000/api";