How To Register Users - Django Wednesdays #24

preview_player
Показать описание
In this video we'll start to build our the registration functionality for our App.

We'll use the built in authentication system that comes with Django to register new users.

In this video we'll create a form on a webpage that new users can use to register and sign up as a member to the site.

#django #codemy #JohnElder

Timecodes

0:00​​ - Introduction
1:30 - Import UserCreationForms
2:12 - Create register_user view
3:26 - Create register_user URL
5:19 - Build register_user view form functionality
11:14 - Add Bootstrap Message Alerts
12:43 - Register a New User
14:17 - Conclusion
Рекомендации по теме
Комментарии
Автор

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

Codemycom
Автор

First of all, thank you for this amazing series. I am learning a lot from you.

For those people who get something like this error:
The view didn't return an HttpResponse object. It returned None instead.


add this "else" to the code to temporarily solve the problem:
if form.is_valid():
...
else:
messages.success(
request, "There Was An Error Registering. Try Again...")
return redirect('register_user')

medmed
Автор

As always, I learn a lot from your videos . . . can't wait for Wednesday each week! Who cares about weekends!!!

briangreenberg
Автор

One of the best channels I have come across so far on YouTube. I was able to incorporate what you taught in my project. Works like a charm! Thank you :)

Iamvaibhavtyagi
Автор

This video is so much better than other content I've followed for this stuff. Big fan!

aiforeducation
Автор

this is simply amazing!!!! After watching this, I now understand the Django user registration creation process because it's so well explained. I just looove Django.

kenkioqqo
Автор

Just wanna say this guy taught me me loads, thank you

skateking
Автор

This channel helps me a lot huhuhuhu loveloooots!

princessarveda
Автор

I have learned a tons of your Django videos. Thank you so much!

barelycodingtoday
Автор

Excelente como siempre! Muchas gracias!

MatíasEzequiel-yy
Автор

Thank you very much for your videos! Great tutorials!!

martinprozapas
Автор

you have done great job thank you love from india❤❤

vaibhavpatel
Автор

Hey John. First of all: Thanks for your videos! I can't tell you how much they've helped me understand Django and how much they've helped me at work! I am having an issue with the registration page, though. I have the exact same code as you, but when I use the function-based view like you have it, I get an error saying that it didn't return an Http object, that it returned None instead (I am using Django 4.1). I switched to a class-based view and it worked, though.

MarilynMarquez-ibor
Автор

Thanks a lot Sir.
Please could you make a video on how user can log in with the combinaison of email and password?

abdelmfossa
Автор

Love your video series. I have been following both your flask and django series. I was wondering if you know of a way to provide Admin approval for user registration? Any change you might be able to do a video on the topic?

BrantScalan
Автор

Hello, I was just wondering, why isn’t the last return statement in views indented and placed within the else statement?

FollowPathfinder
Автор

Thanks for the great video! I do have a brief question. At 9:00 when you pass the form into the render function, why isn't the object scoped to the if and else statements? I'm having a hard time understanding why django allows for this.

mouseclicker
Автор

Can you tell us how to customize the form text? Where it says "The password must be I can't figure out how to do that. Tyyyy your videos are so helpful!!!

greetingsgentlemen.
Автор

John, how do we center the word "August" that appears on the rendering of the calendar on the home page this month?

briangreenberg
Автор

Hey john, So I did exactly what you did. I successfully registered a user and it was also logged in after registering. BUT when I logged it out and tried to log that user in again, nothing happens. Please help me...

magallonseancarl