OpenEdx Django admin panel

3,783 views
Skip to first unread message

Wenting Ma

unread,
Feb 17, 2016, 1:19:56 PM2/17/16
to Open edX operations
Hi there,

Does anyone know how to get the user name and password for the Django admin panel at : http://[server-IP-address]/admin? I installed my openedx instance from Bitnami Open edX in the Amazon market place. Please advise! Thanks!

Wenting

amoiz...@gmail.com

unread,
Feb 18, 2016, 2:16:53 AM2/18/16
to Open edX operations
Hi,
You need to create a superuser from django shell. Following is the procedure.

  1. Login to the server and change to the /edx/app/edxapp/edx-platform directory to use manage.py
  2. Create superuser (with profile) - Replace "us...@example.com" with the email address you want to use, and replace "user" with the first part of the email address that you used. So for example, if you use "staf...@yourdomain.com" for the email address, the username will be "staff+87".

sudo -u www-data /edx/bin/python.edxapp ./manage.py lms --settings aws create_user -s -p edx -e user@example.com
sudo -u www-data /edx/bin/python.edxapp ./manage.py lms --settings aws changepassword user
sudo
sudo -u www-data /edx/bin/python.edxapp ./manage.py lms --settings aws shell


from django.contrib.auth.models import User
me = User.objects.get(username="user")
me.is_superuser = True
me.is_staff = True
me.save()


Viola !!

BR
Moiz

Omkar Kulkarni

unread,
Nov 20, 2016, 2:28:19 AM11/20/16
to Open edX operations
This works... thanks Moiz
Reply all
Reply to author
Forward
0 new messages