made server ready for production

This commit is contained in:
CDaut 2022-06-25 21:53:51 +02:00
parent c9e97da9e9
commit ee55b7ae44
3 changed files with 8 additions and 4 deletions

View file

@ -122,6 +122,7 @@ USE_TZ = True
# https://docs.djangoproject.com/en/4.0/howto/static-files/
STATIC_URL = 'static/'
STATIC_ROOT = '/markdownblog/static'
# Default primary key field type
# https://docs.djangoproject.com/en/4.0/ref/settings/#default-auto-field
@ -132,3 +133,5 @@ LOGIN_REDIRECT_URL = "/"
LOGOUT_REDIRECT_URL = "/"
CSRF_HEADER_NAME = "X-CSRFToken"
CSRF_TRUSTED_ORIGINS = ["https://cdaut.de", "http://cdaut.de"]

View file

@ -3,4 +3,5 @@ psycopg2-binary==2.9.3
factory-boy==3.2.1
markdown2==2.4.3
fontawesomefree==6.1.1
pygments==2.12.0
pygments==2.12.0
gunicorn==20.1.0