{"id":14972626,"url":"https://github.com/itsvinayak/user_login_and_register","last_synced_at":"2025-10-19T13:34:35.362Z","repository":{"id":43038781,"uuid":"197662390","full_name":"itsvinayak/user_login_and_register","owner":"itsvinayak","description":"user login and register system in django","archived":false,"fork":false,"pushed_at":"2024-01-17T15:04:11.000Z","size":10178,"stargazers_count":95,"open_issues_count":1,"forks_count":89,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-30T05:11:21.535Z","etag":null,"topics":["django","django-framework","docker","geeksforgeeks","geeksforgeeks-python","geeksforgeeks-solutions","login","login-system","register","user","users","virtualenv"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/itsvinayak.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-07-18T21:59:50.000Z","updated_at":"2025-03-27T22:12:47.000Z","dependencies_parsed_at":"2025-01-02T13:10:33.623Z","dependency_job_id":"e73a0179-6dfc-4190-a6ee-ac05b0b59021","html_url":"https://github.com/itsvinayak/user_login_and_register","commit_stats":{"total_commits":46,"total_committers":10,"mean_commits":4.6,"dds":0.3913043478260869,"last_synced_commit":"7a6e8ceab6fd33cd4a1fb5d85d4834c17dc73935"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsvinayak%2Fuser_login_and_register","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsvinayak%2Fuser_login_and_register/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsvinayak%2Fuser_login_and_register/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsvinayak%2Fuser_login_and_register/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itsvinayak","download_url":"https://codeload.github.com/itsvinayak/user_login_and_register/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250536413,"owners_count":21446729,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["django","django-framework","docker","geeksforgeeks","geeksforgeeks-python","geeksforgeeks-solutions","login","login-system","register","user","users","virtualenv"],"created_at":"2024-09-24T13:47:14.201Z","updated_at":"2025-10-19T13:34:30.300Z","avatar_url":"https://github.com/itsvinayak.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# User login and register system implementation in django\n![](https://img.shields.io/github/repo-size/itsvinayak/user_login_and_register.svg?label=Repo%20size\u0026style=flat-square)\u0026nbsp;![contributions welcome](https://img.shields.io/static/v1.svg?label=Contributions\u0026message=Welcome\u0026color=0059b3\u0026style=flat-square)\n\u0026nbsp; [![Run Python black code formatter](https://github.com/itsvinayak/user_login_and_register/actions/workflows/main.yml/badge.svg)](https://github.com/itsvinayak/user_login_and_register/actions/workflows/main.yml)\n\n\nDjango is an open-source python web framework used for rapid development, pragmatic, maintainable, clean design, and secures websites. A web application framework is a toolkit of all components need for application development. The main goal of the Django framework is to allow developers to focus on components of the application that are new instead of spending time on already developed components. Django is fully featured than many other frameworks on the market. It takes care of a lot of hassle involved in the web development; enables users to focus on developing components needed for their application.\n\nDjango by default provides an authentication system configuration. User objects are the core of the authentication system.today we will implement Django’s authentication system.\n\ndjango based login,logout and register system [django docs on auth system](https://docs.djangoproject.com/en/2.2/topics/auth/default/)\n\n---\n\nlearn how to make on geeksforgeeks : https://www.geeksforgeeks.org/django-sign-up-and-login-with-confirmation-email-python/\n\n\n![beginner-friendly](https://img.shields.io/badge/beginner%20friendly-django%20project%20-green)\n---\n\n\n## Virtualenv \u0026 Dependencies\n\ncreate a virtualenv and run requirements.txt\u003cbr/\u003e\n\u003cb\u003evirtualenv\u003c/b\u003e\n\n\u003cpre\u003epip install virtualenv\u003c/pre\u003e\n\n\u003cb\u003e what is virtual environment ? \u003c/b\u003e\u003cbr/\u003e\nA virtual environment is a tool that helps to keep dependencies required by different projects separate by creating isolated python virtual environments for them. This is one of the most important tools that most of the Python developers use.\n\u003cbr/\u003e\n\u003ca href=\"https://www.geeksforgeeks.org/python-virtual-environment/\" \u003eread more... \u003c/a\u003e\n\nto run requirements.txt\n\n\u003cpre\u003e$ pip install -r requirements.txt\u003c/pre\u003e\n\nhere \u003cb\u003eenv/\u003c/b\u003e folder contains all dependencies\n\n## Use docker to run\n\n\u003ca href=\"https://www.geeksforgeeks.org/how-to-install-and-configure-docker-in-ubuntu/\" tagret=\"_black\" \u003eHow to Install and Configure Docker in Ubuntu?\u003c/a\u003e\n\n\u003ca href=\"https://www.geeksforgeeks.org/dockerizing-a-simple-django-app/\" target=\"_black\"\u003eDockerizing a simple Django app\u003c/a\u003e\n\npull docker image using\n\u003cpre\u003e$ sudo docker pull itssvinayak/user_login_and_register:latest\u003c/pre\u003e\n\nrun docker file using\n\u003cpre\u003e$ sudo docker run -p 8000:8000 user_login_and_register\u003c/pre\u003e\n\n## Running locally\n\n\u003col\u003e\n  \u003cli\u003e\n      clone repository\n      \u003cpre\u003e$ git clone https://github.com/itsvinayak/user_login_and_register.git\u003c/pre\u003e\n  \u003c/li\u003e\n  \u003cli\u003e\n     make database settings and connect it to your local database\n    \u003cpre\u003e$ cd ./user_login_and_register/project \u003c/pre\u003e\n    open \u003cb\u003esettings.py\u003c/b\u003e file\n    \u003cpre\u003e\n      DATABASES = {\n        \"default\": {\n            \"ENGINE\": \"django.db.backends.mysql\",\n            \"NAME\": \"iert\",\n            \"USER\": \"root\",\n            \"HOST\": \"localhost\",\n            \"PASSWORD\": \"vinayak\",\n            \"PORT\": \"3306\",\n            \"OPTIONS\": {\"sql_mode\": \"traditional\"},\n        }\n      }\n   \u003c/pre\u003e\n   set this part according to needs.\n  \u003c/li\u003e\n  \u003cli\u003e\n    run migrations\n    \u003cpre\u003e$ python manage.py migrate\u003c/pre\u003e\n  \u003c/li\u003e\n  \u003cli\u003e\n    now, runserver\n    \u003cpre\u003e$ python manage.py runserver\u003c/pre\u003e\n  \u003c/li\u003e\n \u003c/ol\u003e\n\n![alt text](https://github.com/itsvinayak/user_login_and_register/blob/master/Screenshot%20from%202019-07-23%2007-26-47.png)\n\n\n---\n\n\n\n### Implement Token Authentication using Django REST Framework\n\nToken authentication refers to exchanging username and password for a token that will be used in all subsequent requests so to identify the user on the server side.This article revolves about implementing token authentication using Django REST Framework to make an API. The token authentication works by providing token in exchange for exchanging usernames and passwords.\n\n---\n\u003cb\u003einstall django rest_framework\u003c/b\u003e\n\u003cpre\u003e$ pip install djangorestframework\u003c/pre\u003e\n\nread more at \u003ca href=\"https://www.geeksforgeeks.org/implement-token-authentication-using-django-rest-framework/\"\u003egeeksforgeeks\u003c/a\u003e\n\n---\n\n\n![login](https://github.com/itsvinayak/user_login_and_register/blob/master/Screenshot%20from%202019-07-23%2007-27-12.png)\n\n\n## License\n[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fitsvinayak%2Fuser_login_and_register.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fitsvinayak%2Fuser_login_and_register?ref=badge_large)\n\n\n\n# Errors\n\n## error when trying to migrate or attempting to runserver\n\nSimply try \"python3 manage.py migrate\" or \"python3 manage.py runserver\" instead\n\nor\n\nDjango is not installed (or installed properly)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitsvinayak%2Fuser_login_and_register","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitsvinayak%2Fuser_login_and_register","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitsvinayak%2Fuser_login_and_register/lists"}