diff --git a/suchwow/config.py b/suchwow/config.py index 2c318a1..1d84a0f 100644 --- a/suchwow/config.py +++ b/suchwow/config.py @@ -42,5 +42,6 @@ MM_ENDPOINT = getenv('MM_ENDPOINT', 'ppppppppppppppppppppppppp') # defaults SESSION_TYPE = 'filesystem' -ALLOWED_EXTENSIONS = {'png', 'jpg', 'jpeg', 'gif'} -MAX_CONTENT_LENGTH = 16 * 1024 * 1024 +ALLOWED_EXTENSIONS = {'png', 'jpg', 'jpeg', 'gif', 'svg', 'mp4'} +MAX_CONTENT_LENGTH = 32 * 1024 * 1024 +TEMPLATES_AUTO_RELOAD = getenv('TEMPLATES_AUTO_RELOAD', True) diff --git a/suchwow/templates/index.html b/suchwow/templates/index.html index addaa58..656557d 100644 --- a/suchwow/templates/index.html +++ b/suchwow/templates/index.html @@ -16,13 +16,20 @@ {% if posts %} {% for row in posts | batch(4) %}
Submitted by {{ post.submitter }} at {{ post.timestamp }}
- + + {% if post.get_image_path().endswith('mp4') %} + + {% else %} + + {% endif %}