1👍
✅
As per Andreas’ comment: it looks like your database does not reflect your Post model; it looks like either you have migrations that have not been applied to the database (run python manage.py migrate --list
to see them), or else you have not yet created migrations for your Post model – refer to the migrations documentation for more information.
About your ‘couple notes’:
1) Is the single gallery going to be hard-coded? If yes, then in the admin you can filter down the list of image instances to be displayed in the list – look for formfield_for_foreignkey()
on that page.
2) A OneToOne field will enforce one post to one image; this may, or may not, be what you want!
Source:stackexchange.com