Add Photo model & templates
This commit is contained in:
parent
9a483b2a7f
commit
f04beb3aaa
9 changed files with 123 additions and 11 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue