Это видео недоступно.
Сожалеем об этом.
Django Login and Registration with Database | Login, Logout and User Authentication | 1/2 |
HTML-код
- Опубликовано: 27 апр 2021
- This Django tutorial covers how to create a login and logout page and how to validate/authenticate users. We will simply need to modify Django's built in AUTH application to do this. Check Playlist for Django Web Frame Work for part 1 of this course
◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️
Download Code Here
github.com/des...
◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️
💻 Facebook Clone Tutorial - www.udemy.com/...
___________________________
💻 RUclips Clone Tutorial - www.udemy.com/...
___________________________
💻 Online Banking Course - www.udemy.com/...
🔗 Social Medias 🔗
📱 Twitter: / desphixs
📸 Instagram: / desphixs__
⭐ Discord: / discord
📝 LinkedIn: / destiny-f. .
🌎 Website: www.desphixs.com
📂 GitHub: github.com/des...
🔊 Podcast: Coming Soon
💸 Donations 💸
💵 One-Time Donations: paystack.com/p...
💰 Patreon: / desphixs. .
◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️
----------------------------------------------- About Me -------------------------------------------
My name is Destiny Franks, and I'm a 21-year-old aspiring Nigerian programmer. I truly enjoy coding, and since it's what I want to do in the long term, I decided to share my experience while teaching on RUclips. So, via this channel, you'd learn programming, software engineering, machine learning, and everything IT. With a focus on Python and JavaScript, my channel seeks to provide you with free tools to help you learn to code and get started in the software engineering and programming business. My goal is to deliver the best programming and technology videos on the internet!
Probably one of the only programming tutorials where the one teaching actually explains why everything works the way it does. This was above and beyond my friend. Keep up the good work.
Omg thanks alot, this instantly made my day, 🥺❤️ thank you so much
I really enjoy myself making. This tutorial and I'm more happy it's valuable to some of my friends here
Thank God I found you, the way you explain why everything works the way it does, it makes learning so so swift, above all you come to the comments and assist when with a blocker! This is really from your heart. Thank you. Just earned a new subscriber. Here to stay.
Thanks alot, I really do appreciate your comment 💕
Usually, I dont write comments, just press like button and continue but your explanation and teaching method need to be appreciated so I am here. :) It really is beautiful, detailed but clean and understandable. I hope more tutorials will come like this!
I appreciate that! it really means alot and will keep me going ❤️❤️❤️
Everything up to 21:36 made for a good tutorial. Once you copy and paste the html and css large chunks of the site are missing from this video making it hard for people to follow. If you run your Github version of the site some of the issues with the content are there also.
Thanks for your observations, I would run the GitHub version now and fix it ASAP
Thank you so much..watched it multiple times till I understood..please upload more of such tutorials..took my understanding to next level..
Sure, I would upload more tutorial like this. I'm happy it helped you learn something new
Thank you so much for step by step tutorial and corresponding explanation. Everyone else just rushes through! so grateful for your video.
You're very much welcomed
anything with the syntax of {% load static %} or any other tag like CSRF for example, do not work in my project they only pop up as any random text placed throughout the webpage. ive seen these tags in other examples but have had the same issue throughout. do i need to use a different html? im currently on html 5 or is it something that i need to add to the settings. any help is appreciated thanks!
Absolutely amazing bro best explanation👌👌
i've been looking for understandable explanation of django and i've find it!) i'm new to web programming and django and i'm trying to make user system for my blog app. Thanks a lot bro and keep going you're pretty good at explaining how things works and you'll surely succeed in this!)))
thank you very much for your coment :)
U really really helped me bro and sorry i stole your all code just to finish with my studies
Thanks u so much bro 😎 u got me and everyone of my friends who want to work with django
C'mon man you didn't steal my code, it's our code 😄. In happy to hear that I helped ❤️
baba you explain it like surprising.
Thanks Boss, i really appreciate your comment.
You just gained another subscriber! Super clear explanations, Thanks a lot :)
Thanks you so much, it really means the world to me when I help someone ❤️
thank you for all the lessons learn. you save my job. thank JESUS
You are very welcome, glad I could help ❤️
You dont need to teach python just teach how to auth in django
Hi Brother, thanks for this wonderful project .
I am getting some errors
1. In main.css file line no 249
// Remy function
@function remy($value) {
@return ($value / 16px) * 1rem;
}
its showing 'at-rule or selector expectedcss(css-ruleorselectorexpected)' and '{ expectedcss(css-lcurlyexpected)'
2.in base.html line no 18
red U/line in static so i changes url to urls but its showing ') expectedcss(css-rparentexpected)', and 'at-rule or selector expectedcss(css-ruleorselectorexpected)'
can you tell me how to fix it?
It looks like there are a couple of syntax errors in your CSS and HTML code. Let's address each one:
1. CSS Error:
css
Copy code
// Remy function
@function remy($value) {
@return ($value / 16px) * 1rem;
}
Issue: CSS does not support the // syntax for comments. Comments in CSS should be written using /* */.
Correction:
/* Remy function */
@function remy($value) {
@return ($value / 16px) * 1rem;
}
2. HTML Error:
Issues:
The "urls" keyword is incorrect; it should be "url" without an "s".
There is a syntax error with the {% static %} template tag.
Correction:
Your tutorials gave me a job, Thanks bro
Woah, that's really amazing.
I'm glad I could help ♥️
Given the situation I am in, you are God to me!!
I'm happy I helped you ♥️
I love your teaching it pretty easy to learn.
I was following your tutorial on how to create: Login, Logout and User Authentication.
please how do i get git link of yours that has the code on how to create Login, Logout and User Authentication.
Hi, thanks for the review.
You can get the code using the GitHub link in the description.
Thanks for the thorough explanation. I have one issue for now. My background image of my homepage is white and the not black. What might be the issue please?
Seems your css styling is not applied right, check your css bg image and we also using WordPress make sure to get the right version 4.0
Hi bro
No module named crispy-forms pls help me to get solved
There is a couple of thing that might be missing
1. pip install django-crispy-forms
2. Add 'crispy-forms' to installed_apps
3. in settings.py add: CRISPY_TEMPLATE_PACK = 'bootstrap4'
4. In template add at the top: {% load crispy_form_tags %}
Tell me if it is not still working.
@@desphixs Thanks Bro Its Working
This great thx! Could you show how to require admin approval for registration before they can login? Adding notification bell/text message to admin when registration is requested and notification to user when access is approved.
yes, i can do.
You can literally do anything you want using django, all you need to do map out your features and the logic you need to be implemented then you can write some code for it.
If you want me to help you implement it, hmu desphixs@gmail.com
@@desphixs email sent☺
py -m venv venv 'py' is not recognized as an internal or external command, operable program or batch file.
Python is not installed on your path variables, let me show you how to do that
To resolve this error, follow the steps below:
Find a folder with the installed Python version as its name in C:\Program Files (where XX is the drive where Windows is installed; e.g. C:\Program Files\Python36). If such a folder does not exist, download and install the latest version of Python here.
Open this folder and copy its path.
Right-click This PC, then go to Properties => Advanced system settings => Environment variables.
In the window that appears when a path variable exists, select it, and click Edit; otherwise, click New.
In the next dialogue box, click on New and paste the previously copied path of the folder; then, click OK.
Hi did it work??
At 21:36 after pasting base.html I'm getting error reverse for register not found
Go to the page, press Ctrl + f, search for "register" it would be in an tag, remove everything inside the href, do same for login too. In latest videos, I provide the template that have no Jinja code in it, to prevent everyone from having that error
Thanks for this video❤
U help me so much!
I'm glad to help
nothing working here in the end it got lots of error . not such app as cripsy_forms
Install Django crispy forms using pip and all install it in the settings.py installed_apps section
If anyone knows all the basics and only want to understand django users concept skip this one and go ahead to part 2 of the video.
Okay thanks alot, I like your contribution ❤️
Thank you for your amazing content.
Please can you tell me why in 15:35 once I runserver it shows
ModuleNotFoundError: no module named 'crispy_forms'
Ps: I am using VS Code
You have to install the django-crispy-forms using pip in your terminal, then make sure to install it in installed_app section in settings.py
Thank you!
I actually did what you mentioned and it all installed successfully but still no luck
Are you adding BOOTSTRAP_TEMPLATE_PACK = 'bootstrap4' in setting.py
And also don't forget to load the template tags in your template.html
@@mmm-ju6kz let's fix your code, if it's possible just put your code on GitHub and send me the link
how to fix NO MODULE FORM 'crispy_form'
Download the django crispy forms pypi.org/project/django-crispy-forms/
Sir after paste html code the error has been occured ob browser that is operational error ar/
No such table: django-session
Run python manage.py makemigrations
And python manage.py migrate
It would work
best channel, amazing content.. thanks for sharing bro
Thanks Alot, really means the world to me ❤️🌝
@@desphixs thanks for content bro, really helped.. new subscribe here. I hope ur channel have much subscriber XD
@@yoriko I hope so, I'm so grateful for the sub man 😊 thanks alot
Hey i need a little help with my school projects, i am creating an online voting system in django, can you help me out? if yes reply with where i can communicate with you. Thank you
desphixs@gmail.com
hello sir. Is the code available in the link you have provided? I'm not getting it.
Yes, the code is available in the link.
There's a folder called raw template, that where you'd get it
What is the problem when not using virtual environment? Is it really needed?
In a nutshell, Python virtual environments help decouple and isolate versions of Python and associated pip packages. This allows end-users to install and manage their own set of packages that are independent of those provided by the system, if you don't use it nothing bad is gonna happen but it's recommend; highly!
where is the image file of the static ? and css doesn't work properly
Maybe you haven't configured it well in base.html, follow the videos it explains it well
Thank you so much for your videos.
You're very much welcomed, I'm happy you like them 🥰❤️
Reverse for 'home' not found. 'home' is not a valid view function or pattern name. i m getting this error
Check your url, make sure the name="home" is correct
@@desphixs yes its correct
DOPE VERY CLEAR
Thanks friend ❤️
Thanks for this step!
No Python at 'C:\Users
upes\AppData\Local\Programs\Python\Python39\python.exe'
not able to do runserver
Install python in environment variables
@@desphixs installed but it shows the same
www.reddit.com/r/learnpython/comments/e2r21n/no_python_at_usrlocalbinpythonexe_after_git_fetch/f8x4e0k/ This should help
thanks for video & code
everything i working except background, when i run code background color displaying is white bcos of which im not able to see words
i did try to edit css file but no success
i have mailed u code also through gmail/Gdrive
thanks
Okay let me check it out
Hi I would like to know if you fixed your bug yet?
@@desphixs not yet....please help
Okay no problem, can you quickly commit your code to GitHub and send me the link, if you can't do that put the code folder in a zip file and send it to desphixs@gmail.com
can anyone help me? im stuck with this error.... TemplateDoesNotExist at /
user/home.html ....while making an html file inside the templates>users
Okay sure, I'd try to help
But without seeing your code I can't really tell where the error is coming from. But firstly cross-check your code with mine, line by line. It should be a typo from your views.py or during naming your template. If it doesn't work then I'd recommend you share your code with me, let's debug it
@@desphixs Ty for your response! I know now what causes the problem
@@rosscruz8586 I had the same error, I am still stuck there, what did you do to solve it
@@derrickodhiambo2634 look carefully for the typos
IM getting error when im copy home.html no reverse found at home
please reply
Make sure you're importing reverse, from django.urls import reverse
Can I use these steps if I already have connection to my PostgreSQL DB? Will my tables about users, permissions and groups be updated automatically or do I need to migrate data after every change? Great course, keep up the good work!
Yes sure
STATICFILES_DIRS setting does not exist?
In your setting.py add this
import os
STATICFILES_DIRS = [os.path.join(BASE_DIR, 'static')]
NoReverseMatch at /
Reverse for 'register' not found. 'register' is not a valid view function or pattern name.
i do the same way as you do but i got this error can you please help me
my bad, it's been a while. if you havnt answered yet, then maybe you have an app name or namespace. if you do that means you need to add the name space before the url name e.g namespaceexample:urlname
after pasting the html code to home.html am getting an error. It says, NoReverseMatch at /
Reverse for 'register' not found. 'register' is not a valid view function or pattern name.
In your urls.py what name did you give to your register url?? And is it the same name that you are using in the button url?
E.g
Urls.py
path('register/', views.register, name="register")
So make sure the url redirecting to your register page has the same name with the the url name.
it should be like this 👇👇
Register Now
That's should work, if it doesn't Let me know!!
@@desphixs am still getting an error. Is the register url tutorial ahead? because I was just following your steps but you hadnt yet reached the register part
@@tumushiimebob507 it's definitely a url error...can you share your code with me maybe through Google drive, let me help out email: desphixs@gmail.com
@@tumushiimebob507 same bro did it solve?
@@desphixs bro im following your video step by step when i copy home.html code its give me error
I did everything in the video but once I added the html i got multpl;e errors
Okay, don't freak out
We'd solve them together.
Paste of the errors here, let me see!
Amazing context thanks
Thank you so much really means alot to me ❤️
Bro I have used the code...but in the beginning...i didn't getting the background image in dark....it's still being white bg..what to do
Are you sure your CSS is perfectly linked well from the static folder??
@@desphixs same error yes i my css is perfectly linked but still white background
@@muhammadfayaz357-fbasbsitf8 seems the image is missing, give me a sec let me look for the image
@@muhammadfayaz357-fbasbsitf8 but you can use any other image, it's doesn't matter
@@desphixs okay sir its worked thank you sir i wam fresh python developer working on django for my FYP if any problem can i share with you ?? Please sent me any flatform that i can Directly communicate with ❤️❤️
Getting errors in css file for remy function part
Can you please indicate the time stamp here?
I have a question sir. When we create an account does it send verification link to our email?
No it doesn't, you have to create that functionality too, using Django email and maybe celery
@@desphixs do you have tutorial for this sending email?
if you need it urgently then I'll make a video about it
@@desphixs yes pleaseee :
Okay sure
Amazing content
Thanks dad 😊❤️
where are the mac commands ????
There would be in the description soon
Thnx alot
You're welcome ❤️
Source code not available, can you send over here.
Ya sure, let me do that
In command prompt virtual enviroinment is created but not in pycharm what is the solution for this
If the command prompt shows some sort of PS: then no need of running virtual environment, it's activated automatically
@@desphixs tq
@@lancychristo2404 you're welcome 🤗
can you send the code source please ? the link is not working
github.com/desphixs/django-authentication-system
@@desphixs thanks so much man
Great video
I cant find users directory
Check if the directory is created and also make sure to install the users app in settings.py
I have errors on main css
Hi, friends
My bad, I haven't been available, have you fixed the error yet
There is lot of problems in main.css file
I would like to know what the problems are??
@@desphixs there was a between problem { expected vala in css
Sir please make a video on html thanks
I am not able to run the server it is showing no module users.app
Make sure, it's installed in settings.py and for some reason, makemigrations and migrate makes it work
i have the same issue and ive seen that its properly installed in settings.py so idk tbh what to do next please let me know if u solved this and how u did it
@@estebanr.edanro1539 i see this might be an issue right? Let me try debugging it
I am getting error in css file
What's error is it??
you love dark blue, I thought
Yes I do 😊
🔥🔥🔥
Thanks Alot