Username input field missing in Django admin

181 views
Skip to first unread message

HieuNT FUNiX-IT

unread,
Nov 3, 2017, 11:12:24 AM11/3/17
to General Open edX discussion
Hi guys, just finished installing Native openEdx on Ubuntu 16.04. Everything was fine until I tried adding some users in Django admin. There was no input field for username. I tried Save and it just saved the blank user (?!). I can't edit the username of an existing user either. The username field is a label, not a textbox so I can't edit it. (Take a look at the pics)

Is my installation broken or something? I tried re-running the installation script but still nothing happened.

Many thanks!



Mattijs Joosten

unread,
Nov 27, 2017, 11:18:07 AM11/27/17
to General Open edX discussion
Hi guys,

Same problem. I've found some other posts with the same problem.
The answers I've read so far are to use the command line or the register form instead.

If I try to make new users on the command line, I get 'permission denied'. The register form is not an option for me. Right now I'm creating superusers and stripping their privileges.

Many thanks!

Traceback (most recent call last):
 
File "./manage.py", line 116, in <module>
    execute_from_command_line
([sys.argv[0]] + django_args)
 
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 354, in execute_from_command_line
    utility
.execute()
 
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 346, in execute
   
self.fetch_command(subcommand).run_from_argv(self.argv)
 
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/management/base.py", line 394, in run_from_argv
   
self.execute(*args, **cmd_options)
 
File "/edx/app/edxapp/edx-platform/common/djangoapps/track/management/tracked_command.py", line 59, in execute
   
super(TrackedCommand, self).execute(*args, **options)
 
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/management/base.py", line 445, in execute
    output
= self.handle(*args, **options)
 
File "/edx/app/edxapp/edx-platform/common/djangoapps/student/management/commands/create_user.py", line 99, in handle
    user
, _, reg = _do_create_account(form)
 
File "/edx/app/edxapp/edx-platform/common/djangoapps/student/views.py", line 1692, in _do_create_account
   
raise PermissionDenied()
django
.core.exceptions.PermissionDenied



Isanka Wijerathne

unread,
Dec 18, 2017, 7:42:19 PM12/18/17
to General Open edX discussion
Same issue here. Any advice?  Thanks

dmitry.g...@raccoongang.com

unread,
Dec 20, 2017, 2:36:06 PM12/20/17
to General Open edX discussion
https://github.com/edx/edx-platform/pull/14729/commits/1b46c3e646555cab98b1b8232f09a17bfe186356#diff-7679c565d1493aa39fc070a8322b4feaR185

вторник, 19 декабря 2017 г., 2:42:19 UTC+2 пользователь Isanka Wijerathne написал:

Azhar Mateen

unread,
Feb 22, 2018, 5:12:35 PM2/22/18
to General Open edX discussion
sudo /edx/bin/python.edxapp /edx/bin/manage.edxapp lms manage_user username us...@example.com --staff --superuser --settings=devstack
sudo /edx/bin/python.edxapp ./manage.py lms --settings devstack changepassword username
Reply all
Reply to author
Forward
0 new messages