Add Photo model & templates

This commit is contained in:
Nyymix 2025-01-05 17:26:09 +02:00
parent 9a483b2a7f
commit f04beb3aaa
9 changed files with 123 additions and 11 deletions

View file

@ -37,6 +37,7 @@ INSTALLED_APPS = [
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'imagekit',
'gallery'
]
@ -121,6 +122,12 @@ STATICFILES_DIRS = [
BASE_DIR / 'static',
]
# Media files
MEDIA_URL = 'media/'
MEDIA_ROOT = BASE_DIR / 'media'
# Default primary key field type
# https://docs.djangoproject.com/en/5.1/ref/settings/#default-auto-field