- Q9 You Are Now Tasked With Saving News Data For Your Django News Application You Have The Form Called Addartice Which 1 (43.64 KiB) Viewed 35 times
Q9) You are now tasked with saving news data for your Django news application. You have the form called AddArtice which
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Q9) You are now tasked with saving news data for your Django news application. You have the form called AddArtice which
Q9) You are now tasked with saving news data for your Django news application. You have the form called AddArtice which is linked to a model called Article. Write the necessary view logic in a function called addArticle to achieve this. Assume that the data must be posted and the entry must be added to the database once the form is validated. You may assume that you have a template called article.html, and the template requires two parameters a form, and a message. A message should be sent back if the article was added successfully or not.