Snippet 1
‘’'
We can change the password using admin or superuser. Assuming you have super useralready created. Please add following urls in your url.py
‘’'
from django.contrib import admin
from django.urls import path, includeurlpatterns = [
path('admin/', admin.site.urls),
path('', include ('main.urls')),
path('accounts/', include('django.contrib.auth.urls')),
]‘’'
In your browser go to url your site.com/admin.
Add your superuser name and password.
Then click on users.
Click the username for which you want to change the password for. Rest is self explanatory.‘’'
Copyright © Code Fetcher 2020