[Fixed]-Create superuser Django in PyCharm

15👍

Well it looks like it is a bug in pycharm 4.3.1 and python 3.4 and django 1.7I faced the same problem and after searching for a while, I managed to solve the issue through using the command line. In the command line type:

$python manage.py createsuperuser

then it will ask you for username, type that and press enter. Notice that you might not be able to use the username you used while trying to create the superuser the first time

then enter an email

and a password and reenter the password while entering the password, you will notice it is hiding it and not moving the cursor, don’t think it is not getting what you type
Then you’re done.

The reason why you can’t use the username from first time is that Django might have created a superuser using that username but it missed up with the password or sth as the discussion from this thread suggests, however, I am not sure of that.

14👍

Goto : PyCharm > Tools > Run django Console >

from django.contrib.auth.models import User
User.objects.create_superuser(username='yourUsername', password='YourPassword', email='your@email.PK')

Cheers !

1👍

Go to cmd or if you are in pycharm, go to Terminal. paste it:

python manage.py createsuperuser

Then, follow instructions in terminal. all set. Now inside terminal,paste it:

python manage.py runserver

after clicking that local server, add /admin in url.
in my case:

http://127.0.0.1:8000/admin

Give your username and password,it will redirect you to Django administration page.

upvote if it works…

Leave a comment