Create superuser error in devstack

Hi everyone,

I’ve just finished installing devstack on workstation. Seem there is no superuser created in installation.
I tried to create a new superuser with following command.
./ lms manage_user admin --staff --superuser --settings=devstack

But an error is thrown out, any idea to overcome this.

WARNING:py.warnings:/edx/app/edxapp/edx-platform/lms/djangoapps/courseware/ DeprecationWarning: Importing 'lms.djangoapps.courseware' as 'courseware' is no longer supported
  warnings.warn("Importing 'lms.djangoapps.courseware' as 'courseware' is no longer supported", DeprecationWarning)

Traceback (most recent call last):
  File "./", line 120, in <module>
  File "/edx/app/edxapp/edx-platform/lms/", line 21, in run
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/", line 22, in setup
    configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/utils/", line 75, in configure_logging
  File "/usr/lib/python2.7/logging/", line 794, in dictConfig
  File "/usr/lib/python2.7/logging/", line 576, in configure
    '%r: %s' % (name, e))
ValueError: Unable to configure handler 'local': [Errno 2] No such file or directory

@phucsystem, you likely have to specify the settings module when calling ./, and you’ll also have to ensure you’re in the correct virtualenv for the edxapp.

There is also a simpler management command for what you’re trying to do called set_superuser.

There are handy links for the scripts for each service available in /edx/bin.
I like to call management commands like so:

sudo -Hsu edxapp /edx/bin/{python,manage}.edxapp lms --settings=devstack_docker set_superuser