How To Change User Password Using Django Admin

Snippet 1



We can change the password using admin or superuser. Assuming you have super useralready created. Please add following urls in your


from django.contrib import admin
from django.urls import path, include

urlpatterns = [
   path('', include ('main.urls')),
   path('accounts/', include('django.contrib.auth.urls')),


In your browser go to url your

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



Leave a comment

Your email address will not be published. Required fields are marked *