views:

117

answers:

1

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?

+2  A: 

You need to activate django.contrib.auth in your INSTALLED_APPS in settings.py.

Waldemar Kornewald
Waldemar, it sounds so simple when you say it like that. ;) Thanx much, I'll try that. At least I got you to register on StackOverflow! ::)
Jacques Bosch
OK, I did that and it worked. Thanx! Does it create that superuser in the data store? Before prompting for the account info though, I got this error: "dev_appserver.py:3617] Could not initialize images API; you are likely missing the Python "PIL" module. ImportError: No module". What am I doing wrong here? I got another error, that datastore_file_stub.py could not read from the datastore file, but that went away when I ran the command again, so I assume the file just didn't exist and then the command created the datastore the first time I ran it. Is that right? Thanx for any further help.
Jacques Bosch
The first error happens because you haven't installed the PIL module. Look here for more details: http://www.pythonware.com/products/pil/
Waldemar Kornewald