Use whitenoise to serve statices and use port 5000

This commit is contained in:
Jens Kadenbach 2019-09-12 13:28:52 +02:00
parent 2d5365d2a8
commit 7fa217f205
4 changed files with 4 additions and 2 deletions

View File

@ -18,7 +18,7 @@ services:
- ./.envs/.production/.postgres
command: /start
ports:
- "8000:5000"
- "5000:5000"
postgres:
build:

View File

@ -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",

View File

@ -18,7 +18,7 @@ services:
- ./.envs/.production/.postgres
command: /start
ports:
- "8000:5000"
- "5000:5000"
postgres:
build:

View File

@ -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