Это видео недоступно.
Сожалеем об этом.

Set up Google Sign-In for Faster Django Login Experience feat. Tech with Tim

Поделиться
HTML-код
  • Опубликовано: 13 авг 2024
  • In this video, Developer Advocate and popular RUclipsr Tim from ‪@TechWithTim‬ demonstrates how to integrate Google sign-in with the Django website. Check out this step-by-step tutorial and comment with any questions.
    For more programming and tech tutorials, subscribe to our channel at / @akamaidevrel
    Follow Tim at / techwithtimm
    Check out Tim's channel at / @techwithtim
    Chapters:
    0:00 - Intro
    0:30 - Django Project Setup
    2:45 - Google Project Setup
    7:55 - Django Settings
    12:50 - Django URLs
    15:20 - Django Views
    15:20 - HTML Template
    20:05 - Connecting Google to Django
    26:10 - Viewing Auth Status and Logging Out
    28:30 - Recap/Summary
    29:40 - Outro
    #django #techwithtim #programming #techtutorials

Комментарии • 89

  • @AlexanderWhillas
    @AlexanderWhillas 3 месяца назад +3

    This really good! Walks you through the setup with Django AND google, both of which are fiddly and would take hours of reading rather than 30mins if you follow along here.

  • @xaoccc
    @xaoccc 8 месяцев назад +6

    When i tried to makemigrations i got this error: ModuleNotFoundError: No module named 'allauth'. Sorry, but this is not working.
    You missed the django-allauth module, which also should be installed.

    • @dakshjain1227
      @dakshjain1227 7 месяцев назад

      Do we need to do a pip install or an import?

    • @lambridegideon1092
      @lambridegideon1092 2 месяца назад

      @@dakshjain1227 pip install django-allauth

  • @qaws747
    @qaws747 9 дней назад

    Thank you so much!!! I've been looking for it for long time

  • @a_mortal7511
    @a_mortal7511 6 месяцев назад +2

    Thanks for this wonderful tutorial.
    An observation: you actually need to add some test accounts before you publish the app else you get the error ` has not completed the Google verification process.
    The app is currently being tested, and can only be accessed by developer-approved testers ...`

  • @muhammadherlambang3548
    @muhammadherlambang3548 Год назад +6

    Thanks for the in depth explanation man this really help me a lot

    • @kedarshidhaye6950
      @kedarshidhaye6950 Год назад

      does this tutorial work even after march 2023 I think google made some changes to their google auth ?

    • @muhammadherlambang3548
      @muhammadherlambang3548 Год назад

      ​@@kedarshidhaye6950yep i think it still work for now, last im using this tutorial is May 2023 last month on my final project and it still working perfectly.

    • @kedarshidhaye6950
      @kedarshidhaye6950 Год назад

      @@muhammadherlambang3548 thanks bro

    • @h9n8
      @h9n8 11 месяцев назад

      @@kedarshidhaye6950 works today if you have an issue inform us

    • @utkarshiitbhu4204
      @utkarshiitbhu4204 8 месяцев назад +2

      17:42 this line gives me error when i launch website saying does not eixst at /
      pls help

  • @pavanjain2178
    @pavanjain2178 Месяц назад

    Thanks for the superb tutorial!

  • @atifansari7514
    @atifansari7514 9 месяцев назад +5

    your most of the videos dont work for me. I am now stuck with an unknow error that I cant find it on google.

  • @theartistbhavik
    @theartistbhavik 21 день назад

    Thank you ! one of the best videos. 🙌🙌🙌

  • @yangtimothy7351
    @yangtimothy7351 Год назад +4

    This tutorial is a saver!!!!!!!!!!!!!!!!!!!!

    • @Elitecricnews
      @Elitecricnews 4 месяца назад

      i have should i canit saverrr

  • @neilsahoo9006
    @neilsahoo9006 Год назад +7

    when I try this method which gives me the same thing as I did myself before. It takes me to a mediator page where I can signup , login or login with google, idk how when you clicked on google login it directly redirected you to the authentication page.

    • @arindam_sahoo
      @arindam_sahoo Год назад +2

      Its happening with me too

    • @kevingitundu2040
      @kevingitundu2040 5 месяцев назад

      Did You find a way of fixing that I'm getting the same error too

    • @deotiiemusic1062
      @deotiiemusic1062 3 месяца назад

      It's because he has all accounts save with chrome
      So he doesn't need to log into his Google account because they are saved
      So google logs him directly

    • @unbeatengamer755
      @unbeatengamer755 3 месяца назад

      me too man. did you find a solution for it?

    • @atulgupta-g
      @atulgupta-g Месяц назад

      ​@@deotiiemusic1062 That's not correct! I have also many accounts logged in my chrome then why I am getting this problem?

  • @andremyszko
    @andremyszko 7 месяцев назад

    thank you so much, you helped me a lot to understanding the road to create this allauth login with django! yes it just works here as well! just following exacly what the step is! very nice dude!

  • @zolokiala2293
    @zolokiala2293 5 месяцев назад

    Thank you for this video. It is very useful. Keep it up!

  • @generalstep
    @generalstep 3 месяца назад +2

    23:19 at here i dont see provider : Google

    • @Daniel-xd1ih
      @Daniel-xd1ih 3 месяца назад +1

      I have the same error rn, did you solve it?

    • @Miggy97
      @Miggy97 2 месяца назад

      @@Daniel-xd1ih Ive solved it (kinda) if you still need a fix

    • @estefanolandeta744
      @estefanolandeta744 2 месяца назад

      ​@@Miggy97 pls help, how u solve it

    • @mohamedaneddame4820
      @mohamedaneddame4820 2 месяца назад

      @@estefanolandeta744 i have the same problem guys can u help me

    • @mohamedaneddame4820
      @mohamedaneddame4820 2 месяца назад

      @@estefanolandeta744 me too same prblm

  • @maheshk_7
    @maheshk_7 2 месяца назад

    Great Explaination video

  • @Magnitudeng
    @Magnitudeng Месяц назад

    Thank you for this video but how can i implement this in Django Rest Frameworks

  • @user-nh1gz7co4k
    @user-nh1gz7co4k Год назад +1

    we cannot add localhost address, its asking for real domain in the google cloud console while creating the api key and secret key. why

  • @MeCoc-yk8pr
    @MeCoc-yk8pr 4 месяца назад

    this video was very helpful

  • @niovanmartinez3343
    @niovanmartinez3343 5 месяцев назад

    It works fine for me, but how can we implement Google One Tap Login?

  • @franklucero4108
    @franklucero4108 Год назад

    Man!!! thank you very very very very much! I hope you can activate that youtube button to invite you a beer or a coffe!

  • @imadlatch7206
    @imadlatch7206 11 месяцев назад

    How to do it programmatically without Third-party apps? , google might depricate the api so our login would went down.

  • @aleemhakim
    @aleemhakim 10 месяцев назад

    Thank you for this cheers

  • @azamazingg
    @azamazingg 5 месяцев назад

    thank you babe 💣

  • @vattoxonfire1278
    @vattoxonfire1278 3 месяца назад +2

    I don't see any provider options in admin ?

    • @pearchairo4831
      @pearchairo4831 2 месяца назад

      ya I had the same error, to be able to see the providers you have to install social account module, pip install django-allauth[socialaccount]. Hope it works

    • @mohamedaneddame4820
      @mohamedaneddame4820 2 месяца назад

      i have the same problem

    • @vattoxonfire1278
      @vattoxonfire1278 2 месяца назад

      @@mohamedaneddame4820 i fixed it but i forgot how

    • @vattoxonfire1278
      @vattoxonfire1278 2 месяца назад

      @@mohamedaneddame4820 you need a certain package

    • @vattoxonfire1278
      @vattoxonfire1278 2 месяца назад

      @@mohamedaneddame4820 remind what the error says again i fixed it by instaling a certain django-allauth-something

  • @maxellmilay
    @maxellmilay 11 месяцев назад +3

    Amazing tutorial!

    • @Elitecricnews
      @Elitecricnews 4 месяца назад

      how to best tutorial
      my project in not properli working

  • @user-bm9is5qs7l
    @user-bm9is5qs7l Год назад

    thanks for the awsome video

  • @rafhaellowixhomwad
    @rafhaellowixhomwad 4 месяца назад

    thanks a lot!!!

  • @utkarshiitbhu4204
    @utkarshiitbhu4204 8 месяцев назад +1

    17:42 this line gives me error when i launch website saying does not eixst at /

    • @akshityadav4211
      @akshityadav4211 8 месяцев назад +2

      same

    • @utkarshiitbhu4204
      @utkarshiitbhu4204 8 месяцев назад

      ​@@akshityadav4211try removing django.contrib.sites from installed apps in settings

    • @mohitdahal2257
      @mohitdahal2257 5 месяцев назад

      same error

    • @JoseDavidSaez
      @JoseDavidSaez 5 месяцев назад

      Same, you should change the site_id config: SITE_ID=2. This worked for me

  • @rahimrahim2720
    @rahimrahim2720 Месяц назад

    really helpful thank you

  • @user-rt2vi2rg8d
    @user-rt2vi2rg8d 10 месяцев назад

    Worked For Me i was getiing error but after tutorial it worked for me

  • @chaitanyamulampaka4886
    @chaitanyamulampaka4886 3 месяца назад

    Help me out, I'm getting no module named 'allauth '

  • @tanishachaudhry4809
    @tanishachaudhry4809 Год назад +1

    Thanks ALOT for this tutorial!!

  • @joespotted
    @joespotted 4 месяца назад

    How to use this on my react native

  • @likhithareddy7081
    @likhithareddy7081 5 месяцев назад

    Hi
    I have one doubt....
    Without using templates( html and css), how to implement this Google login into drf?

  • @yeabayu6434
    @yeabayu6434 5 месяцев назад

    can you do one with a custome auth model adn google auth

  • @mrviktor2449
    @mrviktor2449 Год назад +3

    source code please

  • @unbeatengamer755
    @unbeatengamer755 3 месяца назад

    when i do these steps and then i click the link it takes me to a page that tells me "You are about to sign in using a third-party account from Google." with a continue button underneath. It is only when i press that continue button will it take me to the page where i can select google accounts. How do i remove this middle page?

    • @kiryls1207
      @kiryls1207 3 месяца назад

      i guess it's a browser feature, maybe in browser settings?

    • @unbeatengamer755
      @unbeatengamer755 3 месяца назад

      @@kiryls1207 yeah i figured it out. you gotta make another folder in templates called socialaccount and then make a file called login.html inside it. make an empty form inside it with csrf token and then write a javascript code to submit it as soon as the page loads. There might be another way to do this but this is what worked for me if you know a better way do point me in a direction.

    • @Miggy97
      @Miggy97 2 месяца назад

      @@unbeatengamer755 Youre a genius man how did you figure this out?

    • @unbeatengamer755
      @unbeatengamer755 2 месяца назад

      @@Miggy97 I am pretty sure i read a blog somewhere. btw how were you able to read that comment. I wrote it but i was not able to see it, i figured youtube must have deleted it.

    • @Miggy97
      @Miggy97 2 месяца назад

      @@unbeatengamer755 Looks normal to me, and great did you by any chance find a way to override a screen that tells the user "thisapp wants to see x amount of services and make sure you trust the app"?

  • @KodexAnt
    @KodexAnt Год назад +1

    Thank you. I had problem with SITE_ID=3 (wtf...) but I got it done

    • @WaqtKiSaath
      @WaqtKiSaath 7 месяцев назад

      How you correct it? Please help me

  • @arashkhosravi7611
    @arashkhosravi7611 5 месяцев назад

    Seems really interesting, but There is a background sound which really annoying😮‍💨😮‍💨😮‍💨

  • @user-ti7uf2tq2z
    @user-ti7uf2tq2z 9 месяцев назад

    😮😂good good erygoodyourdicition

  • @TheSmashten
    @TheSmashten 11 месяцев назад +3

    this doesnt work at all btw

    • @TheSmashten
      @TheSmashten 11 месяцев назад

      keep getting the error: django.db.migrations.exceptions.InconsistentMigrationHistory: Migration socialaccount.0001_initial is applied before its dependency sites.0001_initial on database 'default'.

    • @yashvarshney8651
      @yashvarshney8651 11 месяцев назад

      @@TheSmashten I guess you should make initial default migrations first and then proceed with the tutorial

    • @LurkzGaming
      @LurkzGaming 9 месяцев назад

      Worked fine for me.

  • @thedeadbaby
    @thedeadbaby 3 месяца назад

    The poo hits the fan when you have a react front end and drf and templates don't make any sense whatsoever.

  • @hcos8139
    @hcos8139 Год назад +5

    Yoo hi Tim