from django.apps.config import get_model

On Fri, Jan 6, 2017 at 2:03 AM, roboslone <robosl...@gmail.com> wrote:

> Hi! Did you run migrations after adding 'django.contrib.auth' to your
> INSTALLED_APPS?
>
> On 6 Jan 2017, at 07:30, Rasika <rasikachinchwad...@gmail.com> wrote:
>
> from django.contrib.auth import get_user_model
> why I am not able to find the code forget_user_model in auth app.
>
> While when I searched https://docs.djangoproject.
> com/en/dev/_modules/django/contrib/auth/#get_user_model I find this
> definition
>
> def get_user_model(): """ Returns the User model that is active in this
> project. """ try: return django_apps.get_model(settings.AUTH_USER_MODEL,
> require_ready=False) except ValueError: raise 
> ImproperlyConfigured("AUTH_USER_MODEL
> must be of the form 'app_label.model_name'") except LookupError: raise
> ImproperlyConfigured( "AUTH_USER_MODEL refers to model '%s' that has not
> been installed" % settings.AUTH_USER_MODEL )
> Please help me.
>
> Thank you
>
> --
> 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+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/25d99dff-e122-460e-9102-1e2a3331f737%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/25d99dff-e122-460e-9102-1e2a3331f737%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> 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+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/752EA800-E630-4692-A55E-04E91F3A4DB1%40gmail.com
> <https://groups.google.com/d/msgid/django-users/752EA800-E630-4692-A55E-04E91F3A4DB1%40gmail.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CANoUts40F3%3DMBesXKoi2DLAEWqHb-Qcs1nNyzbzgO6T8-apraw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to