Monday, November 5, 2012

Re: from django.contrib.admin.models import User


On Mon, Nov 5, 2012 at 7:50 PM, André Dieb <andre.dieb@gmail.com> wrote:
From what I see on django's source code (dev), there used to be an import of django.contrib.auth.models.User inside django.contrib.admin.models, which means the answer to your question may be: there was no difference.

Incorrect - there *is* a difference. The import from admin is a side effect caused by admin's usage of the auth app; the auth import is the official location. As a result, the import from admin is not supported, and may be removed at any time without warning. Unless you like surprises, stick to the auth import.

Yours,
Russ Magee %-)


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate