earthcomfy / django-registration-and-login-system Goto Github PK
View Code? Open in Web Editor NEWThis is a user registration and login web-app created using Python, Django
This is a user registration and login web-app created using Python, Django
Hi there!
Is there any way to redirect successful logged in user from login page to a custom page instead of home page?
Can you please how you used social django here???
Is there a way to run this code on replit.com? Looks fun and I want to jump in with this but I can only use repl.it at school
Your logout code as is doesn't work with the latest version of Django.
In home.html
<a class="btn btn-primary btn-lg" href="{% url 'logout' %}" role="button">Logout</a>
I was getting a 405 error. After some research I changed the code to:
<form id="frm_logout" method="post" action="{% url 'logout' %}">
{% csrf_token %}
<a href="javascript:$('#frm_logout').submit();" class="btn btn-primary btn-lg" role="button">Logout</a>
</form>
I also added in base.html:
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
After I made the changes I could logout and then the logout.html page would be displayed.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.