Under apps/home/urls.py the line re_path(r'^.*\.*', views.pages, name='pages'),
doesn't only match any html file as the comment says, rather it matches any file at all.
This causes a problem if you try and serve media files in the development server.
Any image will be matched by this regex and the view will return a 404 because it can't find a template with the same name.
Changing the regex from ^.*\.* to ^.*\.*html$ fixes the issue entirely, as that expression will only match .html files
Under apps/home/urls.py the line
re_path(r'^.*\.*', views.pages, name='pages'),
doesn't only match any html file as the comment says, rather it matches any file at all. This causes a problem if you try and serve media files in the development server. Any image will be matched by this regex and the view will return a 404 because it can't find a template with the same name.
Changing the regex from
^.*\.*
to^.*\.*html$
fixes the issue entirely, as that expression will only match .html files