Basic user authentication using django
It is built with Python using the Django Web Framework.
This project has the following apps:
- accounts (main user authentication app)
it uses authentication library of django and django restframework for handeling permissions.
- Python 3.6 and above
- pip3 for Python 3.6 and above
- Run the Django server
pip install -r requirements.txt
python3 manage.py runserver
_Runs default on port 8000
Default User for Testing:-
-
Username: "anuj" Password: "1234"
-
Username: "serendeepia" Password: "1234"
=>Note:
Users Can Be added by- "python manage.py createsuperuser" or by Dajngo Admin Panel.
It redirects to the Home page when user login credentials are correct.
Users can be added or removed from admin pannel as well.
http://127.0.0.1:8000/api/?token=AuthToken
It gives response only when the user has a current active session , else it redirects to django-restframeworks "Access Denied" page.