Use whitenoise to serve statices and use port 5000
This commit is contained in:
parent
2d5365d2a8
commit
7fa217f205
4 changed files with 4 additions and 2 deletions
|
@ -18,7 +18,7 @@ services:
|
|||
- ./.envs/.production/.postgres
|
||||
command: /start
|
||||
ports:
|
||||
- "8000:5000"
|
||||
- "5000:5000"
|
||||
|
||||
postgres:
|
||||
build:
|
||||
|
|
|
@ -124,6 +124,7 @@ AUTH_PASSWORD_VALIDATORS = [
|
|||
# https://docs.djangoproject.com/en/dev/ref/settings/#middleware
|
||||
MIDDLEWARE = [
|
||||
"django.middleware.security.SecurityMiddleware",
|
||||
"whitenoise.middleware.WhiteNoiseMiddleware",
|
||||
"django.contrib.sessions.middleware.SessionMiddleware",
|
||||
"django.middleware.locale.LocaleMiddleware",
|
||||
"django.middleware.common.CommonMiddleware",
|
||||
|
|
|
@ -18,7 +18,7 @@ services:
|
|||
- ./.envs/.production/.postgres
|
||||
command: /start
|
||||
ports:
|
||||
- "8000:5000"
|
||||
- "5000:5000"
|
||||
|
||||
postgres:
|
||||
build:
|
||||
|
|
|
@ -22,3 +22,4 @@ coreapi==2.3.3 # https://github.com/core-api/python-client
|
|||
django-markdownx==2.0.28
|
||||
WeasyPrint==48
|
||||
django-weasyprint==0.5.4
|
||||
whitenoise==4.1.3
|
||||
|
|
Loading…
Reference in a new issue