Update envs

This commit is contained in:
Gabriel Augendre 2021-06-07 16:43:13 +02:00
parent bb756e9339
commit b30c20a08e
5 changed files with 5 additions and 4 deletions

View file

@ -1,3 +1,4 @@
export DEBUG=false
export SECRET_KEY=changeme
export ALLOWED_HOSTS=localhost,127.0.0.1
export DATABASE_URL=sqlite:////db/db.sqlite3

View file

@ -4,9 +4,7 @@ services:
shortener:
image: rg.fr-par.scw.cloud/crocmagnon/shortener
build: .
env_file: shortener.env
environment:
DATABASE_URL: sqlite:////db/db.sqlite3
env_file: envs/docker.env
ports:
- 8000:8000
volumes:

2
envs/docker.env Normal file
View file

@ -0,0 +1,2 @@
DEBUG=true
DATABASE_URL=sqlite:////db/db.sqlite3

1
envs/local.env Normal file
View file

@ -0,0 +1 @@
DEBUG=true

View file

@ -1,6 +1,5 @@
from django.test import TestCase
from django.urls import reverse
from model_bakery import baker
from redirect.models import Redirect