Fixed default ALLOWED_HOSTS; enable debug in test.
All checks were successful
Urania unit tests / Run-unit-tests (push) Successful in 17s
All checks were successful
Urania unit tests / Run-unit-tests (push) Successful in 17s
This commit is contained in:
@@ -22,6 +22,7 @@ jobs:
|
|||||||
- name: Run unit tests
|
- name: Run unit tests
|
||||||
env:
|
env:
|
||||||
DJANGO_SECRET_KEY: 'u92=rjf!))-h!1l9z%4i2xwk^t6%l+$z!$a%1_5zba4_9=ypj1'
|
DJANGO_SECRET_KEY: 'u92=rjf!))-h!1l9z%4i2xwk^t6%l+$z!$a%1_5zba4_9=ypj1'
|
||||||
|
DJANGO_DEBUG: True
|
||||||
working-directory: src
|
working-directory: src
|
||||||
run:
|
run:
|
||||||
python3 manage.py test
|
python3 manage.py test
|
||||||
|
|||||||
@@ -21,7 +21,8 @@ DEBUG = env.bool("DJANGO_DEBUG", default=False)
|
|||||||
print('Debug mode ENABLED. Disable this before going into production') if DEBUG else None
|
print('Debug mode ENABLED. Disable this before going into production') if DEBUG else None
|
||||||
|
|
||||||
ALLOWED_HOSTS = env.list("DJANGO_ALLOWED_HOSTS",
|
ALLOWED_HOSTS = env.list("DJANGO_ALLOWED_HOSTS",
|
||||||
default="localhost,127.0.0.1,0.0.0.0")
|
default=["localhost","127.0.0.1"])
|
||||||
|
print('ALLOWED_HOSTS is set to %s' % ','.join(ALLOWED_HOSTS)) if DEBUG else None
|
||||||
|
|
||||||
INSTALLED_APPS = [
|
INSTALLED_APPS = [
|
||||||
"django.contrib.admin",
|
"django.contrib.admin",
|
||||||
|
|||||||
Reference in New Issue
Block a user