Skip to content
Advertisement

Django forms not saving posts to database

i am trying to create a course from my frontend using django form, everything seems fine but when i hit the create button it just refreshes the page without saving to database or throwing back any error, and that is not what i am expecting.

create-course.html

JavaScript

models.py

JavaScript

forms.py

JavaScript

Advertisement

Answer

this was fixed by just uploading an image, but i wasnt seeing any error because i was not displaying the error in the create page

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement