Add image upload support

Images can be uploaded, thumbnails are created, they're displayed within
the threads themselves. Just like four chans!

There is not an upload size limit set yet. Gotta get on that next.

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
2022-05-04 19:45:36 -07:00
parent 7b99830e65
commit e6c60ff93c
11 changed files with 201 additions and 61 deletions

View File

@@ -124,3 +124,11 @@ STATIC_URL = "static/"
# https://docs.djangoproject.com/en/4.0/ref/settings/#default-auto-field
DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"
# Media root - where media files are stored on the disk
MEDIA_ROOT = "media/"
# Media URL - the URL where media is served from
MEDIA_URL = "media/"
THUMB_SIZE = (200, 200)