Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'createsuperuser' command un known while trying to get started with Djangoappengine

I am trying to get going with Djangoappengine. I followed the instructions, but when I get to this step:

manage.py createsuperuser

I get the following:

Unknown command: 'createsuperuser'

So I ran

manage.py help

And saw that 'createsuperuser' is not even in the list. The list of subcommands listed by help:

  cleanup
  compilemessages
  createcachetable
  dbshell
  deploy
  diffsettings
  dumpdata
  flush
  inspectdb
  loaddata
  makemessages
  remote
  reset
  runfcgi
  runserver
  shell
  sql
  sqlall
  sqlclear
  sqlcustom
  sqlflush
  sqlindexes
  sqlinitialdata
  sqlreset
  sqlsequencereset
  startapp
  syncdb
  test
  testserver
  validate

I can't figure out what has gone wrong here, as I am a total newbe with this stuff. I don't even know exactly what 'createsuperuser' is suppose to do, other than obviously creating a super user of some sort. :)

Any tips?

like image 791
Jacques Bosch Avatar asked Oct 20 '25 13:10

Jacques Bosch


1 Answers

I also had this problem, but django.contrib.auth was already in INSTALLED_APPS. For me, it was that my environment vars hadn't been set in this tab of terminal (despite no error to that effect). I figured this out by running manage.py syncdb, which gave me the appropriate error:

raise ImproperlyConfigured("The SECRET_KEY setting must not be empty.")

Once I set my environment vars, createsuperuser ran fine.

like image 65
JazzTpt Avatar answered Oct 23 '25 04:10

JazzTpt



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!