Software engineering tutorials using various languages, frameworks, and other tools. A strong focus on Python and Javascript building full stack web applications. This includes Django, React, NextJs, and the Django Rest Framework. There are also crash courses to build programming skills in specific frameworks or other tools.
I had a really hard time trying to deploy my project. This is the only video that was simple, well explained and most importantly actually working. Thank you so much man!
Heyyy I'm doing my final project of my CS course in school and it's an online multiplayer game (three.js) hosted on a webapp made with Nextjs, Django and Postgres (all running in docker containers) and I absolutely adore this walkthrough since all of these technologies are completely new to me (except Docker). If you're wondering why we have to do something so complex as our very first web project, the goal is to challenge ourselves one last time to learn something entirely new, as it's the school's philosophy. While the content and style is different, you've helped me out a ton with setting up our work environment and things like db initialization, user management, authentication, etc... With that said, has anyone ever told you you kinda sound like Vinny from Vinesauce? 😂
Hello, it doesn't work when I log out. Whenever I go to /logout or when I click logout, the page shows "This page isn’t working." Do you have any ideas on how to fix this?
The fix I found for the logout issue: In navigation.html after "{{ user.username )) </a></li>" put: <form action="{% url 'logout' %}" method="post"> {% csrf_token %} <button class="btn btn-sm">Log Out</button> </form> And in settings.py at the bottom under LOGIN_REDIRECT_URL = '/dashboard' put LOGOUT_REDIRECT_URL = '/login' This makes it to when you logout it redirects you to the login page instead of a logout page. I can't figure out the issue to make it to where the logout page works appropriately, but this should appropriately log the user out. If anyone solves the actual logout page issue please let us know. I went through quite a few steps of troubleshooting and still couldn't get the logout page to load appropriately without a "GET /logout/ HTTP/1.1" 405 0 error.
Thanks so much, you gave me a good start to figuring it out! I found I could make it pretty much exactly how he has it with this code. <li class="nav-item"> <form action="{% url 'logout' %}" method="post"> {% csrf_token %} <button type="submit" class="nav-link btn btn-link" style="color: var(--bs-nav-link-color)">Sign Out</button> </form> </li> This actually does take me to the logout page, so if it doesn't for you then it's an issue somewhere else, maybe the url's. Note: the hover color doesn't work on it, feel free to fix that and post it
I would recommend everyone to learn from here only if u have already done DRF before but u still arent getting much satisfaction, this is the best place to go. This guy understands the problem of people like me very accurately. Hope to see some AI, ML videos from you bro and some projects involving AI + Django Rest Framework, Like Data Analytics API which upon recieving a csv dataset can generate deep data insights and user freindly graphs using matplotlib and seaborn like libraries. This is the project I had in my mind for a long time since i am into both AI/ML and Django, API development.
This series deserves 10000x more views/engagement than it has. There's so many bad tutorials on here with way more views that are so hard to follow. This is clear, concise and easy to follow. Nice work!
40:39 Hey man, thank you for the work you do. It seems like the LogoutView has been depricated. No matter how many times I try visiting to my logout url, I get a HTTP error 405. Can you help me out?
thanks for the video mann. i am having an issue during the templates for the signup and login page , the templates is not showing after getting the template folder from the repository can you please help
Hey now. So, is there no way to "mock out" that user login? I've always been taught that when unit testing, we don't want to do any 'real' calls out to real things, such as actually logging in a user. Admittedly that's in .Net. Do you Python / Django folks do things differently?
you can set DEBUG to true in order to check error or find django error logs for catching errors. 500 is internal server error so something happened in your code
For those stuck on the log out function and keep getting error 405, I found a fix. Under {% if user.is_authenticated %} on navigation.html; add this code as the logout button: <li class="nav-item"> <form method="post" action="{% url 'logout' %}"> {% csrf_token %} <button class="nav-link" type="submit">Log Out</button> </form> </li>