Skip to content

Commit

Permalink
fix(chore): apply pre-commit lenting etc.
Browse files Browse the repository at this point in the history
  • Loading branch information
griff-rees committed Oct 16, 2023
1 parent 518d6b1 commit f629fd6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
5 changes: 4 additions & 1 deletion config/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@

from .settings import * # noqa

DEFAULT_ALLOWED_HOSTS: Final[list[str]] = ["lwmdb.livingwithmachines.ac.uk", "0.0.0.0",]
DEFAULT_ALLOWED_HOSTS: Final[list[str]] = [
"lwmdb.livingwithmachines.ac.uk",
"0.0.0.0",
]
DEFAULT_CONN_MAX_AGE: Final[int] = 60
DEFAULT_SECURE_SSL_REDIRECT: Final[bool] = True
# https://docs.djangoproject.com/en/dev/ref/settings/#secure-hsts-include-subdomains
Expand Down
6 changes: 5 additions & 1 deletion config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@

# SECURITY WARNING: customise these when run in production

ALLOWED_HOSTS = ["0.0.0.0", "127.0.0.1", "localhost",]
ALLOWED_HOSTS = [
"0.0.0.0",
"127.0.0.1",
"localhost",
]

# Add VIRTUAL_HOST from .envs/local if available
# See Deploy section of documentation for details
Expand Down
5 changes: 2 additions & 3 deletions production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ services:
depends_on:
- postgres
- redis
user: "1001" # Necessary for staticfile permission see https://github.com/cookiecutter/cookiecutter-django/discussions/3691
user: '1001' # Necessary for staticfile permission see https://github.com/cookiecutter/cookiecutter-django/discussions/3691
volumes:
- .:/app:z
- production_django_media:/app/lwmdb/media
env_file:
- ./.envs/production
ports:
- '8000:8000'
- '9090:9090' # For Jupyter
- '9090:9090' # For Jupyter
- '5000:5000'
command: /start

Expand Down Expand Up @@ -89,4 +89,3 @@ services:
# ports:
# - '5555:5555'
# command: /start-flower

0 comments on commit f629fd6

Please sign in to comment.