Python Django Tutorial: Full-Featured Web App Part 6 - User Registration

preview_player
Показать описание
In this Python Django Tutorial, we will be learning how to use forms and validate user input by creating a user registration page. We will also learn how to install and use Crispy Form so that our forms match the modern style of our application. Let's get started...

The code for this series can be found at:

✅ Support My Channel Through Patreon:

✅ Become a Channel Member:

✅ One-Time Contribution Through PayPal:

✅ Cryptocurrency Donations:
Bitcoin Wallet - 3MPH8oY2EAgbLVy7RBMinwcBntggi7qeG3
Ethereum Wallet - 0x151649418616068fB46C3598083817101d3bCD33
Litecoin Wallet - MPvEBY5fxGkmPQgocfJbxP6EmTo5UUXMot

✅ Corey's Public Amazon Wishlist

✅ Equipment I Use and Books I Recommend:

▶️ You Can Find Me On:

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

If anyone is doing this tutorial and having troubles with crispy forms, with the help of tutorial and some comments, I found that this works:

1) pip install django_crispy_forms
2) pip install crispy_bootstrap4
3) Add both of these to INSTALLED_APPS:
'crispy_forms',
'crispy_bootstrap4',
4) Add both of these at the bottom:
CRISPY_ALLOWED_TEMPLATE_PACKS = "bootstrap4"

CRISPY_TEMPLATE_PACK = 'bootstrap4'
5) Use {% load crispy_forms_tags %} and {{ form|crispy }} in the html file.

As always, great tutorial, thank you, Corey!

vladinstein
Автор

there is huge difference between people who know stuff, with people who can teach stuff.
you are great teacher

SajadJalilian
Автор

If I make any money from this, I swear to god that I'll support the channel as much as I could What an amazing teacher

tommyeagen
Автор

as of May of 2023, you need to add 'crispy_bootstrap4' to install apps and at the bottom of the settings file you need to add CRISPY_ALLOWED_TEMPLATE_PACKS = "bootstrap4" as well, or else you will run into a template not found error. other than that great tutorials. I love the work.

broomstick
Автор

This series is amazing. I wasted 3 days on udemy. didn't learn shit. Thank you Corey !!! I'll contribute to your channel dearly after getting the job.

shoaibrain
Автор

I am loving your tutorial and your style of teaching. It's a couple of years gone and myselfe coming across your course is pure bliss.
For anyone who may get stuck at this lecture and having an issue with {{form|crispy}} kindly in your terminal use this crispy... 'pip install django-crispy-forms==1.14.0'
The error will be gone. Happy coding, happy learning all.
All thanks to CoreyMS our legend.

johnprogrammer
Автор

I live in Siberia. I don’t speak English (now I'm using Google Translite). But I understand the python code and I have experience with django. Аnd then I understand you. Thank you for this tutorial series! Without them, my development skills in Django would not have gone off the ground. Finally, I can do what I need for my project!

UliaKey
Автор

Although I rarely comment on youtube's video. But l have to do it today to tell others that "This is best Django tutorial on youtube".
Stay safe Stay home.
Love from India

AnkitRaj-ycxy
Автор

Jesus these crispy forms are just marvelous! Thank you, master!

saitaro
Автор

0:37 - a way for users to login without admin page
0:58 - a separate app for users
1:45 - create users app
2:32 - install users app
3:31 - create view to handle the logic
4:31 - auth built-in form
6:39 - create template
13:20 - create URL pattern
16:20 - form.as_p
17:32 - GET & POST request
21:13 - flash massage & redirect
23:47 - update template to show massage
26:58 - explain the logic behind
30:45 - save data when they are valid
32:18 - add email field into form
35:41 - explain class Meta
38:53 - form styling with crispy-form

congcuongnguyen
Автор

Thanks you for uploading! I have to learn django to use in my university project. I've been binge watching your tutorials today, they are extremely helpful. Your explanations are super clear and and tell you exactly what you need to know!

limari
Автор

This is pure gold! Thank you Corey for putting all the time and effort into making these tutorials! So happy that I've found your channel!

alexandertoretto
Автор

These tutorials are so good! I spent a year learning at school and learned even more from your tutorials in one day!

grouchydrago
Автор

You are an amazing teacher. Thank you so much. so far I feel like I learned two/three semesters of practical development. Continue being awesome.

_rahiali
Автор

This is 5yrs later and all I have say is you're the best am glad that I came this way💯👏

GeorgeEkujereonye-igzb
Автор

Corey you're the greatest.. I'm a slow learner. But I don't have any problems here. Your tutorials are thorough and easy to follow for people who are new to this programming thing.

Thanks a lot.

CRWLFC
Автор

Literally the best Django tuts i've seen so far :D keep up the great work!

michaschmitt
Автор

For anyone having issues at 27:28 where you get thrown to an error page after the crispy forms part: move the form.save() method to under the if statement. This will save the data to the database once the data has been validated, rather than trying to do it while it's at the POST request

runescapeswordshow
Автор

I just wanted to take time out before I move on to say that you are one of the best educators I have ever come across. Thank you for doing what you do!

michael-jones
Автор

I'm only on the 6th video in this series and I've started looking at django interview questions and can answer atleast 30 % of every list. All of this from only 6 videos in. You explain a lot and well!! I even believe my bootstrap skills are stronger.

LocdnessMomster