Django Tutorial #26 - Model Forms

preview_player
Показать описание
Hey gang, in this Django tutorial I'll introduce you to Model Forms so that we can create one for our Article model and then render it to the browser.

----- COURSE LINKS:

======== Other Tutorials =========

----- NODE.JS TUTORIALS

----- MONGODB TUTORIALS

======== Social Links ==========

Рекомендации по теме
Комментарии
Автор

3:34 Instead of fields = ['title', 'body', 'slug', 'thumb'] you can write fields = '__all__' to add all fields in the model.

JJnnaatt
Автор

finally ...we were waiting for your new videos in this series... happy holidays

wisamkhalid
Автор

Welcome back and happy new year Shaun!

DanieleTrapani
Автор

At 7:00 why we are using the same url for inputing and posting the data, can't we use two different urls

theangularavenger
Автор

Why do we need to create forms.py file to create new Class? Can't we use the model from Model.py class only?

preetsingh
Автор

Hey, Net Ninja! watched all of your videos, and they are awesome! i was wondering if you could make a video regarding the cookies and the sessions of Django.. i tried to look up videos about this but couldn't find anybody who could explain as good as you do... !

vashisthegde
Автор

Thanks for this Would I need an API if i want only successful payment saved into the database
when a submit button is cliked? Thanks and hope to here from you...

ridwanray
Автор

hey! i love your tutorials. thank you for the great work. Will you do a tutoral for djanago 2.0 ?

zimtfilm
Автор

Can you please explain what is the Meta class?

trzztrzz
Автор

Nobody writes slug manually.. You should have shown how to make apropriate slug field, that defaults to title, but with '-' instead of spaces. Otherwise amazing tutorial series! I especially love that youre using method based views instead of class based ones.

wetpenguin
Автор

Whenever I click on a field in my form to type in some stuff it refreshes the whole page... How can I get rid of that? Or - what did I do wrong?

ewkaczka
Автор

When he added the thumb in Article field in this seriese?

anikhossain
Автор

make sure in newly made forms file you
call "model" a "model"
and
"fields" "fields"
also "Meta" "Meta"

ЕвгенийПетров-вп
Автор

It dosenot redirect . all data in form is shown in url and it dont redirect... Anyone please help

ashimsinghthapa
Автор

When I go to localhost:8000articles/create it takes me back to the login page instead of the new create article page. I have gone over the and traced my steps, my code is the same as the tutorial but I just can't fix this. Can anyone help please?

elenaperez
Автор

Can We just use Any other name than Meta ... in class Meta declaration

yashv
Автор

didnt make any sense how the post and get request are gonna be the same.

runthomas