gunicorn media file serving

This commit is contained in:
vabene1111
2020-06-03 19:58:01 +02:00
parent d09c6dbfed
commit f9cb44c66b
4 changed files with 14 additions and 1 deletions

View File

@@ -7,6 +7,10 @@ ALLOWED_HOSTS=*
# random secret key, use for example base64 /dev/urandom | head -c50 to generate one
SECRET_KEY=
# serve mediafiles directly using gunicorn, technically not a "best practice" but for the expected small deployments
# of this application absolutely sufficient. If False some kind of webserver (for example nginx) is needed to server mediafiles
GUNICORN_MEDIA=True
# add only a database password if you want to run with the default postgres, otherwise change settings accordingly
DB_ENGINE=django.db.backends.postgresql_psycopg2
POSTGRES_HOST=db_recipes