Forums

I can't create a superuser

Hi,

When I try to create a superuser, using : (myvirtualenv) ~/fpa $ python manage.py createsuperuser

I get errors like :

django.db.utils.OperationalError: (1045, "Access denied for user 'vertent'@'10.0.0.11' (using password: YES)") ... MySQLdb._exceptions.OperationalError: (1045, "Access denied for user 'vertent'@'10.0.0.11' (using password: YES)")
...

I don't know if I have a superuser, because when I login in : http://vertent.pythonanywhere.com/admin/

Which (user/pass) do I need to use?

Thanks Thanks, Alex

If createsuperuser failed, then you do not have a superuser. If you're getting an "Access denied" message connection to the database, then one or more of the details that you're using in your DATABASES setting is incorrect. The correct details are shown on your databases page and the password should be the one that you set when you initialised your MySQL database.

Ok Thanks,

In Databases Panel, I have the database : vertent$dp_fpa

How I can change the password for this db ?

Alex

There's a heading on your Databases page that says "MySQL Password". You can use that to change your password.

How can I create a superuser after the webapp is deployed

You can use manage.py createsuperuser. See the Django documentation for how to use it.