How To Add Database Forms To A Web Page - Django Wednesdays #7

preview_player
Показать описание
In this video I'll show you how to add forms to your webpage that allow you to update your database.

Adding Database Web Forms is pretty straight forward with Django. But styling them is not! In this video we'll add a web form to our web page that allows us to add Venus to our Venue Model.

We'll also style the web form using Bootstrap to make it look nicer.

Timecodes
0:00​​ - Introduction
3:43 - Create VenueForm Form
7:09 - Add Path For Add_Venue Page
7:36 - Create an Add_Venue View
8:55 - Create Link on Navbar To Add_Venue Page
9:44 - Add Form To Add_Venue Page
18:57 - Add Submitted Logic To Add_Venue Web Page
20:13 - Test The Form
21:36 - Style The Form With Bootstrap
23:43 - Remove or Change Django Form Labels
25:33 - Add Placeholder Text To Form Input Fields
26:48​ - Conclusion
Рекомендации по теме
Комментарии
Автор

▶️ Watch Entire Django Wednesdays Playlist ✅ Subscribe To My YouTube Channel:
▶️ See More At: ✅ Join My Facebook Group:
▶️ Get The Code

Codemycom
Автор

@4: 40 A meta class is an inner class that provides a metadata about the outer class in Django, it define things such as available permissions, associated database table names, singular and plural versions of the name etc.

Thanks for the video, it was really helpful.

mosesejele
Автор

Best video for new learner. I watched at least 5 different people's video, most don't describe the logic or tell the thing they are doing. But he explains every single steps which is great for person who are new to coding.

MrHossain
Автор

All your classes are at next level.. hats off.. love from india

sambhusdharan
Автор

You are one of the best teacher in the world love from india

bhs_codz
Автор

Tried FastAPI, Flask and now Django.... Loving Django. It makes so much sense. Good tutorial. Thanks

Good-and-Geeky
Автор

after stucking for so long, and then watched your video, I have finally get the solution. TQVM. Subscribed

codewithmorris
Автор

hello, when i submit the form i get submitted = True but it wont return your venue addded succesfully why

Kingofnekos_osu
Автор

wow .This video helps me a lot in understanding forms in django. I have read the django doc but your video helps me a lots . Moreover your teaching skill is amazing

saminrahman
Автор

Your video helped me a lot to understand forms in the minimum time! Thank you so much for the great job

CryptotechCh-twib
Автор

Thnaks man...You always have what i need

joshuabarawa
Автор

Thanks for the video, it was very helpful in learning django!

Jonny-giiz
Автор

Thank you!!, this video was very helpful.

ngamenifranck
Автор

Hi. Great course. I like to listening very much. I learned a lot from you. Have you thought about doing a course on how to use datapicker in record editing forms? I have a model-based form.
I have working code that adds a record. I use the same form for editing, but unfortunately it does not retrieve the current record data. I have to enter a new date when editing.
I was also thinking about using the datapicker with admin.
There are a lot of tutorials on stackoverflow - I've tried a few of them but they didn't work for me :)

mxmx
Автор

Thank you for the video. It was very helpful.

behroozfalsafi
Автор

Thank you very much for the video I had two questions: the first is how can I make it so that the saved information is saved and only viewable by the user account that created it (I say this because I have made a registration and login system with authentication of a password manager web app and therefore it would be inconsistent to see the passwords of all)
the second: if this information saved on the database I want it to also be viewable on an html page organised in rows/columns, how can I do this? and if so whether there is a possibility from the html page to delete a saved password (via a button) instead of doing it from the django administration.

alemagnific
Автор

How do you do to have a label for the primary key of the class?

rafaeljesus
Автор

Hi John, GREAT COURSE....
I get a error message when i try to add the form (12:27). The error message starts with ValueError at /add_venue
ModelForm has no model class specified.

And below: Error during template rendering
In template C:\PY_Projects\myclub\myclub_website\events\templates\events\base.html, error at line 0.
Do you know what this could be? I have (double) checked the code but could not find any errors....
Much appreciated!!

eduardjogi
Автор

when adding venue i do not get the page added sucessfully redirect but it does add it to the database

jimmybatista
Автор

thank you very much .you help us to create our project.... !!! could you make video about ecommerce

lorimedicenter