how to delete or remove an user account in admin

1,561 views
Skip to first unread message

carlos mario menco padilla

unread,
Aug 30, 2016, 3:31:22 PM8/30/16
to Open edX operations
hi,

I try to delete a user, but I get this ERROR 

THERE HAS BEEN A 500 ERROR ON THE YOUR PLATFORM NAME HERE SERVERS



Ned Batchelder

unread,
Aug 30, 2016, 3:32:18 PM8/30/16
to opene...@googlegroups.com
Check your log file for details of the error:  /edx/var/log/lms/edx.log (or maybe cms, if you were using Studio).

--Ned.

--
You received this message because you are subscribed to the Google Groups "Open edX operations" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openedx-ops+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openedx-ops/24bc4cbb-679d-4525-a84d-ed80c17af38d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ernesto Sanchez

unread,
Sep 22, 2016, 5:54:50 PM9/22/16
to Open edX operations
hi

i have the same problem, but i found this solucion


cd /edx/app/edxapp/edx-platform
sudo -u www-data /edx/bin/python.edxapp ./manage.py lms --settings aws shell
 
 
Shell de django

from django.contrib.auth.models import User
u=User.objects.get(email='us...@example.com'); 
[obj.delete() for obj in u.preferences.all()];
u.delete()

Ed Zarecor

unread,
Sep 23, 2016, 8:49:10 AM9/23/16
to Open edX operations
Depending up the version you are running, I would recommend running this rather than deleting users from the shell:

./manage.py lms manage_user --remove e0d e...@example.com --settings=aws

Best,

Ed

(e0d on github)
Reply all
Reply to author
Forward
0 new messages