From 72e7f4fdc2853ba717b2fd4631a3074b7479af0d Mon Sep 17 00:00:00 2001 From: Denys Chura Date: Mon, 21 Oct 2024 19:16:47 +0300 Subject: [PATCH] [DI-2712] Fix broken tests caused by empty ``*_DJANGO_ADMIN_URL` value --- {{ cookiecutter.project_slug }}/README.md | 3 ++- {{ cookiecutter.project_slug }}/api/.env.example | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/{{ cookiecutter.project_slug }}/README.md b/{{ cookiecutter.project_slug }}/README.md index 67e9314..ab46305 100644 --- a/{{ cookiecutter.project_slug }}/README.md +++ b/{{ cookiecutter.project_slug }}/README.md @@ -32,7 +32,8 @@ cp ./api/.env.example ./api/.env ``` > [!IMPORTANT] > It is highly advised to use custom admin location instead of default `admin/`. -> To do that you need set `{{ cookiecutter.__env_prefix }}DJANGO_ADMIN_URL` environment variable in `./api/.env` file. +> To do that you need set `{{ cookiecutter.__env_prefix }}DJANGO_ADMIN_URL` environment variable in `./api/.env` file +> with custom value. ### Run application with required services diff --git a/{{ cookiecutter.project_slug }}/api/.env.example b/{{ cookiecutter.project_slug }}/api/.env.example index 22f4c16..a01877a 100644 --- a/{{ cookiecutter.project_slug }}/api/.env.example +++ b/{{ cookiecutter.project_slug }}/api/.env.example @@ -12,7 +12,7 @@ {{ cookiecutter.__env_prefix }}EMAIL_PORT=1025 {{ cookiecutter.__env_prefix }}EMAIL_USE_TLS=off -{{ cookiecutter.__env_prefix }}DJANGO_ADMIN_URL= +{{ cookiecutter.__env_prefix }}DJANGO_ADMIN_URL=admin/ # Minio credentials AWS_S3_ACCESS_KEY_ID={{ cookiecutter.__minio_access_key }}