Skip to content

How to reset Admin Password #81

Answered by mgogoulos
switch540 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

the installation creates an account with user 'admin' and a random password, not sure why you can't login, are you sure it's not an issue of copy/paste?

Anyway, you can still reset the password through the Django shell - command line

Run as root

# source /home/mediacms.io/bin/activate
# cd /home/mediacms.io/mediacms
# python manage.py shell

You are in the command line shell. Now run

from users.models import User                                                                                                                                                                              
user = User.objects.filter(username='admin')[0]
user.set_password('new_password')
user.save()

Then yo…

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@gam-ragnar
Comment options

@mgogoulos
Comment options

@Saifhashmi29
Comment options

@anasskal
Comment options

@heerbovec
Comment options

Answer selected by switch540
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants