Commit aa1e16ff authored by Kenzo-Hugo Hillion's avatar Kenzo-Hugo Hillion
Browse files

change env var for postgres port

add empty default secret key

add SECRET_KEY to CI for tests
parent cd9b97c2
Pipeline #12635 passed with stage
in 59 seconds
......@@ -27,6 +27,7 @@ test-backend:
stage: lint_test_coverage_backend
variables:
DATABASE_HOST: postgres
SECRET_KEY: testsecretkey
DJANGO_SETTINGS_MODULE: "metagenedb.settings-gitlab-ci"
script:
- flake8 --max-line-length 120
......
......@@ -107,7 +107,7 @@ DATABASES = {
'NAME': 'postgres',
'USER': 'postgres',
'HOST': env.str('DATABASES_HOST', default='db'),
'PORT': env.int('POSTGRES_PORT', default=5432),
'PORT': env.int('DATABASES_POSTGRES_PORT', default=5432),
}
}
......@@ -117,4 +117,4 @@ MEDIA_URL = env.str('MEDIA_URL', default='media/')
STATIC_ROOT = public_root('static')
STATIC_URL = env.str('STATIC_URL', default='/static/')
SECRET_KEY = env.str('SECRET_KEY')
SECRET_KEY = env.str('SECRET_KEY', default='')
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment