문제

In the Django tutorial, I'm at the part that says "You'll see a message for each database table it creates, and you'll get a prompt asking you if you'd like to create a superuser account for the authentication system. Go ahead and do that." I'm using Django 1.2.3.

In case it's relevant, I'm using SQLite, and in the settings file under mysite, I didn't set a password because you're supposed to leave it blank for SQLite. But right now I'm setting up the superuser account in the command line and it's demanding that I set a password. And it won't let me type.

So I leave it blank, and hit enter (which does work), and it asks me to confirm my password. I hit enter again. And it tells me, "Error: Your passwords didn't match."

Is there a reason it won't let me enter any text? Is there a way to get around this? This is just a development server, so I'm OK if the solution involves not setting a password at all, but it's not letting me do that either.

OK, so I know I have to enter something non-empty. The problem is, the command line is literally not letting me type there. I hit keys and the little blinking underscore doesn't move. All it will allow me to do is hit enter while it's still blank, but then the empty passwords don't match. I want to know why it's not letting me type.

도움이 되었습니까?

해결책

You are not suppose to see the password you are typing. Just type your password, repeat exactly same password when prompted and you should be ok.

다른 팁

The Django superuser password is independent of the password used to authenticate with the database server. The reason it won't let you set a non-blank password is because it's a security risk; Django doesn't care that your app will never see public use.

The password for the authentication module is separate from your database. You'll have to set a non-blank password for the superuser.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top