Django Tutorial for Beginners - 23 - Adding Forms to the Template

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

Anyone else think he killed that dog? :D

Chowski
Автор

"Alright mate, looking good!" - Bucky.

jyothishkumar
Автор

Bucky, thank you - this is awesome. I cannot find this project on git though. Is there somewhere else i can download this project?

jamesford
Автор

You are mixing xhtml and html5 elements; you shouldn't. You type < br > (html5), but you would also < img / > and < input / >, which is xhtml.

minimalo
Автор

Not sure if Bucky still checks these comments, but maybe someone else can explain why use :

{% if error_message %}

{% endif %}

instead of just :


don
Автор

Im getting a "music.views has no attribute favorite" error, but no view was set/required in the video for this to work. does anyone have an idea of what maybe wrong?

bikis
Автор

Thanks for the great lesson Bucky
Anybody can probably answer this, but I have no formal training in html. But, on the submit button, should it have a '/>' at the end of it:
<input type='submit' value='submit favorite'/>
or does it matter if the tags syntax is without it?
<input type='submit' value='submit favorite'>
It seems to work either way, but I am curious.

tonyiguru
Автор

I had no issue following this tutorial until this video. Can somebody explain to me what exactly Bucky is doing. For example, where the "error message coming from"? Any help will be greatly appreciated. Thank you.

mr.anderson
Автор

hey Bucky you said that the way template need information is by dictionary but you didn't made dictionary for song for details page like you have made ['album': album]

manishadwani
Автор

Django tutorial 23 Adding Forms to the Template
list items into form input radio buttons carried over, tutorial 24
apps used in this tutorial




\music\views .py
\music\urls .py

consumerdude
Автор

I am coming back to this video and he never talks about security of the form

madhav
Автор

{% this doesnot complete automatically, which i hope to be {% %}, what package should i install for this ???

realhunk
Автор

why you typed

label for='song(forloop.counter)

manishadwani
Автор

Hello, thenewboston,
Thank you for teaching Django.
Where is the value of “album.song_set.all” from? In your detail.html file line 12, where is the value of “album.song_set.all” from? In the view file views.favorite, I did not see a value name of “album.song_set.all”.
Thank you for your help.
Duan Liu

liuduan
Автор

Was trying out the error message, but it did not work...
I tried it by hardcoring the value of the radio button to 10, so I dont have a song with pk=10. In that case should have displayed the error message in the detail.html... But it didnt..

Did I miss something ?? or have interpreted the use of error_message incorrectly??
Please can you help??
Thanks in advance :)

abhisheklokare
Автор

is there any method to induce a href link in the name section of the form entity

TamilSelvan-xfut
Автор

I am a bit confused about album.song_set.all where did song_set come from?
can someone explain that to me?

keithbryant
Автор

OMG !!! How much do you speak ... non stop.. but very entertaining though ;)

abcd-ekrt
Автор

What does forloop.counter actually return

musiclover
Автор

I'm getting error in this line
<form action = "{% url 'music:favorite' album.id %}" method = "post">
the error is 'music' is not a registered namespace. Anyone tell me where I made mistake? Thanks

sauravdas