Git Product home page Git Product logo

django-registration-and-login-system's Introduction

Django-registration-and-login-system

This web app has been developed using the popular Django framework and Bootstrap for the frontend. My motivation to build this project is so that I can learn about Django and tighten up my skills. This mini-app can be easily integrated into a bigger system project that needs to have a registration and login system.

Basic Features of The App

  • Register – Users can register and create a new profile
  • Login - Registered users can login using username and password
  • Social Apps Login – Users can login using their GitHub or Google account
  • User Profile - Once logged in, users can create and update additional information such as avatar and bio in the profile page
  • Update Profile – Users can update their information such as username, email, password, avatar and bio
  • Remember me – Cookie Option, users don’t have to provide credentials every time they hit the site
  • Forgot Password – Users can easily retrieve their password if they forget it
  • Admin Panel – admin can CRUD users

ScreenShot

Tutorial

Here is a tutorial on how to build this project.

Quick Start

To get this project up and running locally on your computer follow the following steps.

  1. Set up a python virtual environment
  2. Run the following commands
$ pip install -r requirements.txt
$ python manage.py migrate
$ python manage.py createsuperuser
$ python manage.py runserver
  1. Open a browser and go to http://localhost:8000/

django-registration-and-login-system's People

Contributors

earthcomfy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

django-registration-and-login-system's Issues

Logging out via GET requests to the built-in logout view is deprecated.

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.

running on replit.com

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

Social Django

Can you please how you used social django here???

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.