Django Tutorial - User Registration & Sign Up Page

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ม.ค. 2025

ความคิดเห็น • 132

  • @CryseHD
    @CryseHD ปีที่แล้ว +23

    By the end If you are having issues with running /register site due to missing uni_form.html file you will need to:
    -using cmd install pip install crispy-bootstrap4
    -then add to settings: crispy_bootstrap4
    Rerun server, will work now.

  • @WeonGope
    @WeonGope 4 ปีที่แล้ว +8

    23:50 it's called a pipe. Love your content.

  • @ronnieabs4668
    @ronnieabs4668 5 ปีที่แล้ว +2

    I was very confused at the beginning about UserCreationForm but now its clear to me, thanks Tim

  • @numanahmad3943
    @numanahmad3943 5 ปีที่แล้ว +9

    Your teaching style is very good

  • @technerd900
    @technerd900 3 หลายเดือนก่อน

    is this video outdated by now or what, since the whole playlist and this guy's content is just very clean and useful.

  • @ALittleOG
    @ALittleOG 4 ปีที่แล้ว +1

    I agree with the comment that your teaching style is very good. You are one of the few programming guys that actually shows what will be created at rhe BEGINNING of the video.. Really helps ! Thanks foe your time!

    • @simrandotdev
      @simrandotdev 4 ปีที่แล้ว +1

      Checkout these 2
      th-cam.com/play/PLgCYzUzKIBE_dil025VAJnDjNZHHHR9mW.html
      th-cam.com/play/PLx-q4INfd95EsUuON1TIcjnFZSqUfMf7s.html

    • @OfficialLegend
      @OfficialLegend 7 หลายเดือนก่อน

      @@simrandotdev thanks for these, tims playlist is very scuffed

  • @efrainvalles191
    @efrainvalles191 2 ปีที่แล้ว

    This Django Series is so good !!!

  • @abdulrahmantijani2646
    @abdulrahmantijani2646 4 ปีที่แล้ว +6

    when i tried to import the register views.py from the register folder, pycharm marks both as 'unresolved reference' with a red jagged line underneath each one.
    So i think that maybe the reason why when i tried to load up the register page, i get this error:
    TemplateDoesNotExist at /register/
    Someone help plz. Really eager to finish this course

    • @caesarskycrow6556
      @caesarskycrow6556 4 ปีที่แล้ว

      this error means that ur way to html file wrong, check some grammar stuff idk

    • @TMDStudios
      @TMDStudios 4 ปีที่แล้ว

      I had the same issue, but just letting it be and moving on with the tutorial worked... no errors were thrown

    • @mohammedyaqub4612
      @mohammedyaqub4612 4 ปีที่แล้ว

      first checks for any typo in views.py specially path for the templates checks for the app linking in main setting.py

    • @_n0iro.project_590
      @_n0iro.project_590 2 ปีที่แล้ว +1

      I've got the same issue.

    • @נדבלבקוב
      @נדבלבקוב 2 ปีที่แล้ว

      I had the same problem and what i did is delete name=register and changed the func (register) to something else (also change it in the urls) and it worked. It still marks views in red but it works

  • @travisstepp5548
    @travisstepp5548 ปีที่แล้ว +2

    Every thing works until i get to crispy and, then i get this error
    TemplateDoesNotExist: bootstrap/uni_form.html
    Can you help me fix this please
    Edit
    Stack overflow helped out after a proper search

  • @anonymousghost5384
    @anonymousghost5384 2 ปีที่แล้ว

    Awesome as always

  • @Timo-mo6or
    @Timo-mo6or 5 ปีที่แล้ว +2

    Thanks for the helpful video's Tim, loving the content

  • @Myyoutube-r6j
    @Myyoutube-r6j ปีที่แล้ว +4

    Hi Tim, thank you for the Tutorial. However, I got this error with crispy form: bootstrap4/whole_uni_form.html
    1 {% extends 'main/base.html' %}
    2
    3 {% block title %} Create an Account {% endblock %}
    4
    5 {% load crispy_forms_tags %}
    6
    7 {% block content %}
    8
    9 {% csrf_token %}
    10 {% crispy form %}
    11 Register1
    12
    13 {% endblock %}
    Can you tell me what is wrong?

    • @Spedclover
      @Spedclover ปีที่แล้ว

      10th line kinda but for me it aint work too

    • @pierremontroeul2392
      @pierremontroeul2392 ปีที่แล้ว

      Have you tried with double quotes instead of simple ones? :)

    • @Spedclover
      @Spedclover ปีที่แล้ว

      I got it done that time i aint remmeber ho
      w@@pierremontroeul2392

  • @princesolomonadurku2340
    @princesolomonadurku2340 5 ปีที่แล้ว +3

    You are the best

  • @simaobonvalot9141
    @simaobonvalot9141 3 ปีที่แล้ว

    Crispy forms isn't working for me for some (unknown) reason. What other ways are there to fix the layout of the form ? It looks ugly.

  • @dinindutheekshana2254
    @dinindutheekshana2254 3 ปีที่แล้ว

    Great tutorial sir

  • @zolika154
    @zolika154 4 ปีที่แล้ว

    Quality content as always :)

  • @yawan4998
    @yawan4998 4 ปีที่แล้ว +1

    But what to write in = from _____ import _______ in users/urls.py ? Please tell

  • @tonymatthews4853
    @tonymatthews4853 2 ปีที่แล้ว

    Hi Tim - thanks for the video. Just trying to confirm. Do you have to be an existing user to add a new user? ie - new users can not register themselves? At the very end of the video you make it sound like only existing users can use this registration page.

  • @jeremyheng8573
    @jeremyheng8573 3 ปีที่แล้ว

    very helpful tutorial!

  • @kadrogo601
    @kadrogo601 5 ปีที่แล้ว +2

    I don't know why but I cannot runserver just like you did at the end of this lecture. pip install worked perfectly but "crispy_forms" is not applied to the server.. I dont see any solutions in Git or Stackoverflow.. anyway thanks!

    • @葉曉融
      @葉曉融 4 ปีที่แล้ว

      Hi same issue here. Would appreciate if you know how to deal with this!!

    • @Purity14
      @Purity14 4 ปีที่แล้ว +1

      @@葉曉融 Insert 'crispy_forms', into the installed apps in the settings.py

  • @siddharthsingh991
    @siddharthsingh991 4 ปีที่แล้ว +5

    After registering a user through the form, I am not able to see that in my admin/users column !!

    • @robingerold
      @robingerold 4 ปีที่แล้ว +9

      check your views.py and make sure that the if statement is correct:
      if response.method == "POST":
      form = UserCreationForm(response.POST)
      if form.is_valid():
      form.save()
      else:
      form = UserCreationForm()

    • @eldarz5659
      @eldarz5659 ปีที่แล้ว

      @@robingerold i make it, but im still not able to see that in my admin/users column

  • @akashpatra5902
    @akashpatra5902 4 ปีที่แล้ว

    QUESTION. even though i set the method in register.html as "post" in views if i check response.method, it is giving "GET". so getting an error. Could you please answer why is it so @TechWithTim

  • @_n0iro.project_590
    @_n0iro.project_590 2 ปีที่แล้ว

    From register import views as views_register ist not working (TypeError: view must be a callable or a list/tuple in the case of include()).
    When it type nameOfProgramm.register the views error dissappears but gets replaced with ModuleNotFoundError: No module named 'nameOfProgramm.register'
    Any idea which part in the code could have caused it? Help would be appreciated.

  • @manuvideos3979
    @manuvideos3979 ปีที่แล้ว

    Hello Tim, Thanks for this tutorial. I'am having an issue here with "form|crispy", I belive the problem is "|" teh vertical bar. When I use my keyboard vertical bar the HTML run an error, same when I copy the same vertical bar from your website. What I understood is when I use the vertical bar comming from microsoft word I don't have runtime error in register.HTML (bootstrap4/uni_form.html), howerever my fields don't show up, I just see the Register submit button. If you still there can you give me an tip to solve this??

  • @egehurturk6209
    @egehurturk6209 4 ปีที่แล้ว

    Why did you create another app for users? Can't we integrate that with the base app?

  • @moinmeister2912
    @moinmeister2912 2 ปีที่แล้ว

    Hi Tim, I'm trying to solve my issue with "NameError: name 'form' is not defined" do you have any idea why this happen?
    Thanks Konrad
    (I'm from Germany, so sorry for grammatical mistakes)

  • @bakiyomoyle3357
    @bakiyomoyle3357 4 ปีที่แล้ว +1

    somethings wrong with from register import. it causes unresolved reference

  • @benettsif4147
    @benettsif4147 2 ปีที่แล้ว

    its 2022 when im writting this comment and i ve noticed that at 9:44 you dont have to write all this in the INSTALLED APPS, just the name of the app 'register' would do.

  • @jurajnajiva
    @jurajnajiva 4 ปีที่แล้ว

    Why do you call view function parameter 'response'? Normaly you want to call it request, since it represents a request object. Its confusing.

  • @elishashmalo3731
    @elishashmalo3731 5 ปีที่แล้ว +1

    Could you make a tutorial series for the physics library "pymunk" using pygame? If not, I could probably figure out how to use it but I would love a series from you

  • @jpnzo2k12
    @jpnzo2k12 5 ปีที่แล้ว

    YOUR FIRED!!!! no jk Subscriber +1

  • @salman-farooq-sh
    @salman-farooq-sh 4 ปีที่แล้ว +3

    the parameter for the form view function should have been named request instead of response for conceptual correctness

    • @BuriedCitadel
      @BuriedCitadel 3 ปีที่แล้ว

      Thanks for pointing this out! I was comparing this code to some other similar bits and I did get hung up on this - wish I saw it earlier!

    • @salman-farooq-sh
      @salman-farooq-sh 3 ปีที่แล้ว

      @@BuriedCitadel no probs always happy to help internet learners and strangers

    • @salman-farooq-sh
      @salman-farooq-sh 3 ปีที่แล้ว

      @@BuriedCitadel no probs always happy to help internet learners and strangers haha

  • @huseinghf1704
    @huseinghf1704 3 ปีที่แล้ว

    can we use our custome forms, i mean no djangos forms?

  • @preetinagarkar8197
    @preetinagarkar8197 4 ปีที่แล้ว +2

    I got error on views.py in register app...
    "ModuleNotFoundError: no module named ' register.form' "
    ..Can anybody know about it please help me..!
    Thanks in advance...

    • @Lovelife19-j3i
      @Lovelife19-j3i 4 ปีที่แล้ว

      Please share your code snippet from 'views.py' in your register folder

    • @preetinagarkar8197
      @preetinagarkar8197 4 ปีที่แล้ว

      @@Lovelife19-j3i should I share here?

    • @divijsanjanwala4844
      @divijsanjanwala4844 4 ปีที่แล้ว

      Did you get a solution to this? Even I am getting the same error..

    • @arifurrahmanarif241
      @arifurrahmanarif241 4 ปีที่แล้ว

      did you migrate your manage.py?

    • @thelaststanding97
      @thelaststanding97 4 ปีที่แล้ว

      me too! i don't know why but i tried to delete all of register and rewrote it.. and i solved it )

  • @dwaynemcpherson5379
    @dwaynemcpherson5379 3 ปีที่แล้ว

    Hi the register button doesnt work, i get no error message or anything.

  • @awoali5972
    @awoali5972 10 หลายเดือนก่อน

    Please help me sir, how can I register users from dashboard

  • @arunadhigaaram
    @arunadhigaaram 4 ปีที่แล้ว

    i did the same way you did., But inmy case it does not shows password not matched error when i gave input as different passwords.it direcctly redirected to home page.
    how can i fix this issue?

  • @shivshankarsasmal7198
    @shivshankarsasmal7198 4 ปีที่แล้ว +1

    Your Teaching Skills are Great ! Hats Off !
    But, Can You Please Explain Me About How to Confirm The Email Id Of a user by sending otp or token or something

    • @gamerezio9807
      @gamerezio9807 4 ปีที่แล้ว

      you should search youtube for "How to send email using python?" and genetrate a randon 4 or 6 digit number and sent it to the given mail

    • @gamerezio9807
      @gamerezio9807 4 ปีที่แล้ว

      this is just a personal opinion i am
      also noob please forgive me if it doesn't work

    • @shivshankarsasmal7198
      @shivshankarsasmal7198 4 ปีที่แล้ว

      @@gamerezio9807 I Figured It, Bro
      If You Want To I CAn Send You

    • @surajkekan6817
      @surajkekan6817 4 ปีที่แล้ว

      @@shivshankarsasmal7198 Please send me thank you for help

    • @shivshankarsasmal7198
      @shivshankarsasmal7198 4 ปีที่แล้ว

      @@surajkekan6817 Okay, No Problem

  • @ja9ackerman114
    @ja9ackerman114 4 ปีที่แล้ว

    hi is this also applicable to posgresql the login and logout? im using django version 3

  • @Worldnme
    @Worldnme 4 ปีที่แล้ว

    where is he extending the base.html file ? i don't see it anywhere

  • @xtiandyc7034
    @xtiandyc7034 4 ปีที่แล้ว +2

    Hi Tim! I would like to request for a quick tutorial or a rewrite of this one but uses CLASS BASED VIEWS and uses extended user model by subclassing AbstractBaseUser

  • @paulgaiani-porquet1460
    @paulgaiani-porquet1460 4 ปีที่แล้ว

    great video

  • @fbq
    @fbq 5 ปีที่แล้ว

    I think you are python creator, not Guido van Rossum, a nice video dude.

  • @baqirhussein1109
    @baqirhussein1109 3 ปีที่แล้ว

    this is just a reminder for me 10:15

  • @Lonchanick
    @Lonchanick 5 ปีที่แล้ว

    Regards my friend!
    I got a question, What kind of object return "response.POST"?

  • @lawesosah9214
    @lawesosah9214 5 ปีที่แล้ว +2

    Love the videos Tim!!! Oh and the bar thing is called a pipe i believe(you said we should comment if anyone knows)

  • @tomaszkoscielniak612
    @tomaszkoscielniak612 5 ปีที่แล้ว

    Is it possible to remove this hints to password below input or change so that they appear in the speech bubble?

  • @MrPennywise1540
    @MrPennywise1540 ปีที่แล้ว

    Sorry😢. The web registration app don't work anymore. There's a problem with bootstrap. I tried to fixe it using manuals and AI. I clone it from your GIT HUB. But there was no solution. Maybe because bootstrap is working in a new and updated version.

    • @MrPennywise1540
      @MrPennywise1540 ปีที่แล้ว

      I use it in a form template to register new users. I wrote instead:
      {% block content %}
      {% csrf_token %}
      {% comment "" %}{% form|crispy %}{% endcomment %}
      {% bootstrap_form form %}
      Register
      {% endblock %}

  • @dude-ox2em
    @dude-ox2em 5 ปีที่แล้ว

    this works well with localhost but error popped up on my heroku pushed site stating "the app is crashed eith error code H10" help pls help me tim

  • @mukeshparmar9250
    @mukeshparmar9250 4 ปีที่แล้ว

    hey , actually i am also doing the same but the data of the form is not validating as well as not getting save into database, pls help

    • @Lovelife19-j3i
      @Lovelife19-j3i 4 ปีที่แล้ว

      You probably have a duplicate of the code line 'form = UserCreationForm()' in your views.py

  • @peternazarov1278
    @peternazarov1278 5 ปีที่แล้ว

    I don't know why i get a DoesNotExist exception in the /register page, how can I fix this issue?

    • @hiwab41
      @hiwab41 4 ปีที่แล้ว

      Same ;(

  • @prakashsaravanan6613
    @prakashsaravanan6613 4 ปีที่แล้ว

    wrong output can't able to register a user through form in database

  • @mpayimanairadukundarobert5726
    @mpayimanairadukundarobert5726 3 ปีที่แล้ว

    thanks it is helpfull

  • @rainfeedermusic
    @rainfeedermusic 4 ปีที่แล้ว

    Please somebody tell me how to edit the help text in the registration form. I tried help_texts, not working for password1 and passsword2

  • @cavink5342
    @cavink5342 5 ปีที่แล้ว

    So amazing

  • @akashchaturvedi1884
    @akashchaturvedi1884 5 ปีที่แล้ว +1

    i have did same as you but again n again showing csrf token missing
    help me

    • @Nyamistaya
      @Nyamistaya 5 ปีที่แล้ว

      Make sure u added a {% csrf_token %} inside of registration form, not outside, okay? Its works to me

  • @ibrohimahmadjonov6859
    @ibrohimahmadjonov6859 2 ปีที่แล้ว

    why didn't you share or show all your template html pages in main app . It's really complicated for django beginners . Sorry about my words

  • @deepjoysarkar7946
    @deepjoysarkar7946 5 ปีที่แล้ว +1

    Damn great!

  • @sriharint
    @sriharint 4 ปีที่แล้ว +1

    I got the following error, please help:
    Using the URLConf defined in mysite.urls, Django tried these URL patterns, in this order:
    1. ^admin/
    2. register / [name="register"]
    The empty path didint match any of these.

    • @290_muhammadsulthanmazaya5
      @290_muhammadsulthanmazaya5 4 ปีที่แล้ว

      idk if you already figured out the solution, but i guess you could change the url in the patterns from '/register' to 'register/', it worked for me.

  • @nurlanmlikov141
    @nurlanmlikov141 3 ปีที่แล้ว

    thanks man

  • @manelbech7511
    @manelbech7511 3 ปีที่แล้ว

    How to add name , last name, phone, etc. because it tell me those field don't exist

  • @Lonchanick
    @Lonchanick 5 ปีที่แล้ว

    Just a little bit bigger the letter plz :D And perfect!

  • @keerthanamurugesan3129
    @keerthanamurugesan3129 2 ปีที่แล้ว

    I am not able import register

  • @iFunktion
    @iFunktion 5 ปีที่แล้ว +3

    | is called a pipe.

  • @efrainvalles191
    @efrainvalles191 2 ปีที่แล้ว

    | is called pipe in old tech terms.

  • @zaynsheikh9907
    @zaynsheikh9907 2 ปีที่แล้ว

    Can anyone plz help!!!
    How to add my custom validations on username and password in crispy forms ..?

  • @maciejm9012
    @maciejm9012 5 ปีที่แล้ว

    can you write how to change the language in the form of registration?

    • @maciejm9012
      @maciejm9012 5 ปีที่แล้ว

      ok, I found

    • @godmena5816
      @godmena5816 5 ปีที่แล้ว

      @@maciejm9012 Can u tell me how to do it?

    • @maciejm9012
      @maciejm9012 5 ปีที่แล้ว

      ​@@godmena5816 {% load i18n %}
      #Polish language
      {% language 'pl' %}
      {{form}}
      {% endlanguage %}
      here you will find more information
      docs.djangoproject.com/en/3.0/topics/i18n/translation/

  • @trqmfang28
    @trqmfang28 2 ปีที่แล้ว

    Can anyone explains to me the pros and cons of django contrib auth? also limitations? im really new to programming. thanks!

  • @TwilightWorld7
    @TwilightWorld7 4 ปีที่แล้ว +1

    You forget to tell us how to make an automatic sucessfull login for a newly registered user. Otherwise thumbs up!

  • @usercommon1
    @usercommon1 5 ปีที่แล้ว

    If you get Error 405 try this
    class RegistrationView(TemplateView):
    template_name = 'account/registration.html'
    def get(self, request):
    form = UserCreationForm()
    return render(request, self.template_name, {'form': form})
    def post(self, request):
    bound_form = UserCreationForm(request.POST)
    if bound_form.is_valid():
    new_profile = bound_form.save()
    return HttpResponseRedirect("/profile/")
    return render(request, self.template_name, {'form': bound_form})

  • @sainco3036
    @sainco3036 5 ปีที่แล้ว +1

    thanks.

  • @Shadownrun2
    @Shadownrun2 5 ปีที่แล้ว

    Why is this tagged Pygame?

    • @TechWithTim
      @TechWithTim  5 ปีที่แล้ว +1

      Likely a mistake

    • @Shadownrun2
      @Shadownrun2 5 ปีที่แล้ว

      @@TechWithTim didn't expect an answer, thank you for the videos, your content is very good and I appreciate very much the text version. Sorry for any grammar. Again, thank you very much! :)

  • @srikanth8762
    @srikanth8762 4 ปีที่แล้ว +2

    i'm confused more now, any one have simple registration and login without tutorials or videos please share with me

  • @Heresjaken
    @Heresjaken 4 ปีที่แล้ว +1

    Think it is a pipe |

  • @NiekHM
    @NiekHM 4 ปีที่แล้ว

    LOOK OUT, if a user already exists the page gives an error, i was stuck on this for to long ;-;!!

    • @veotic2728
      @veotic2728 4 ปีที่แล้ว

      How did you fix it?

  • @ayubomaraden867
    @ayubomaraden867 5 ปีที่แล้ว

    Cool

  • @denilbhatt1005
    @denilbhatt1005 4 ปีที่แล้ว

    Well " | " is called a pipe

  • @Xd-kf8pb
    @Xd-kf8pb 5 ปีที่แล้ว

    Can you teach us how to ddos again or tell us a good one that is free because I got ddosed the other day because a guy found out I watch a certain youtuber

  • @cyrusthegreat6301
    @cyrusthegreat6301 ปีที่แล้ว

    lovely boy

  • @zakariachriaa9288
    @zakariachriaa9288 2 ปีที่แล้ว