Thanks for this Bekky........... 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...
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... !
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.
it's easy you can make it by yourself, make a simple function that has the title as argument then use the replace function, it would be like this return title.replace(" ","-") finally save it on your database that's all
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?
3:34 Instead of fields = ['title', 'body', 'slug', 'thumb'] you can write fields = '__all__' to add all fields in the model.
Date is not needed
@@enos5192 does is differ? Anyway fields = '__all__' renders the same thing
I think you could do exclude in it now.
Thanks Man. Searched this everywhere.
Why do we need to create forms.py file to create new Class? Can't we use the model from Model.py class only?
Thanks for this Bekky........... 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...
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... !
At 7:00 why we are using the same url for inputing and posting the data, can't we use two different urls
Can you please explain what is the Meta class?
finally ...we were waiting for your new videos in this series... happy holidays
hey! i love your tutorials. thank you for the great work. Will you do a tutoral for djanago 2.0 ?
there is no big changes however take a look to Flask it's better and easier
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?
Welcome back and happy new year Shaun!
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.
it's easy you can make it by yourself, make a simple function that has the title as argument then use the replace function, it would be like this return title.replace(" ","-") finally save it on your database that's all
make sure in newly made forms file you
call "model" a "model"
and
"fields" "fields"
also "Meta" "Meta"
otherwise you'll get ModelForm error
It dosenot redirect . all data in form is shown in url and it dont redirect... Anyone please help
Can We just use Any other name than Meta ... in class Meta declaration
Very very good job thank you
When he added the thumb in Article field in this seriese?
ruclips.net/video/LAIVhl2CG8E/видео.html
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?
I'm having the same issue!
you have to login in before you can proceed to "create" because you have the decorator @login_required(login_url="/accounts/login") in your views.py
thx
Not Found: /articles/create/{'articles/create'}
] "POST /articles/create/%7B'articles/create'%7D HTTP/1.1" 404 3345
didnt make any sense how the post and get request are gonna be the same.
nice
Please add this to playlists
Take my money.