Thursday, January 2, 2014

Re: django 1.6 When creating superuser in cmd.exe, why ask a password for three times?

Thank you :-) again.

在 2014年1月3日星期五UTC+8上午10时30分01秒,Russell Keith-Magee写道:
Glad to hear you could solve your problem.

As for sharing files without needing an account; two options I can think of:

 1) Github Gists (https://gist.github.com) are useful for sharing a small number of files, especially source code. You can also update the files, keep track of versions, receive comments and so on.

 2) Dropbox allows you to put files into a public folder and share a URL to that file. 

Both these services will require *you* to create an account, but the person reading/receiving your files will not.

Hope that helps!

Yours,
Russ Magee %-)

On Fri, Jan 3, 2014 at 10:26 AM, 项楠 <xiang...@gmail.com> wrote:
It worked. Thank you. BTW, could you recommend a site for sharing files not requiring an account?

在 2014年1月3日星期五UTC+8上午9时28分57秒,Russell Keith-Magee写道:
Hi,

I can't check your source code (I haven't got a baidu account, which appears to be a requirement for downloading the zip file you've provided), but you should only be asked for your password twice.

My guess is that you've included "password" in your list of REQUIRED_FIELDS. REQUIRED_FIELDS only needs to include user-added fields on your own model - for example, if ever user must have a date of birth, you can put the date_of_birth field in REQUIRED_FIELDS. You *don't* need to include username, password, or any of the built-in fields that Django provides as part of the base user model. Remove 'password' from REQUIRED_FIELDS, and you should only get two requests for a password.

I can see why you've made this error - the documentation isn't clear on this point. I've opened ticket #21726 [1] to make sure this is addressed.


Yours,
Russ Magee %-)



On Fri, Jan 3, 2014 at 9:11 AM, 项楠 <xiang...@gmail.com> wrote:

django 1.6.1,python 3.3.3, windows 8.

I choose Substituting a custom User model, and everything is ok except creating superuser at the beginning:

enter image description here

As you can see, django asked password for three times despite the success in creating the superuser., why?

this is the source code, if needed. Thanks.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/3b8c6fd9-df94-4b16-b2df-38926a19873e%40googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/55b4a871-1399-4a0f-bb28-4fb745ef130d%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment