Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change Wagtail password in Django

Tags:

django

wagtail

I have inherited a django project which uses Wagtail for CMS. When I go to (project_url)/cms/ I am asked for a username and password, which I do not have.

Is there any way to create a default user account in the settings.py file, or reset the existing account so that I can gain access to the CMS section?

like image 377
kujosHeist Avatar asked Mar 11 '23 23:03

kujosHeist


1 Answers

You can run the changepassword command (django-admin changepassword your_username, for example) to change a password for the existing your_username user.

Alternatively you can create a new superuser using the createsuperuser command by running django-admin createsuperuser.

like image 142
m1kola Avatar answered Mar 19 '23 23:03

m1kola