Wednesday, November 27, 2019

Re: basic_app not provide the User how to reslove ?

Hello friend,
I see the Error :
in line six do this - user = models.OneToOneField(User, on_delete=models.CASCADE)
and in the __str__ function - return self.user.username

Thanks, let us know if this works.

Mailtrack Sender notified by
Mailtrack 11/28/19, 07:05:21 AM

Le jeu. 28 nov. 2019 à 04:11, MEGA NATHAN <cloudnathan1997@gmail.com> a écrit :
Hi.



PS C:\Users\Meghanathan\Desktop\django\django_levelfive\learning_users> python manage.py migrate basic_app
SystemCheckError: System check identified some issues:

ERRORS:
basic_app.UserProfileInfo.User: (fields.E300) Field defines a relation with model 'User', which is either not installed, or is abstract. 
basic_app.UserProfileInfo.User: (fields.E307) The field basic_app.UserProfileInfo.User was declared with a lazy reference to 'basic_app.user', but app 'basic_app' doesn't provide model 'user'.
PS C:\Users\Meghanathan\Desktop\django\django_levelfive\learning_users>

And i have attached the snipscreen blow .

Regards
Meganathan G,

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/164892b0-aaba-4b55-b864-3cdbce1c0f20%40googlegroups.com.


--
Ousseynou Diop
Software developer | Python rock | open source enthusiast 
Portfolio : www.ousseynou.com
Instructor : www.xarala.tech

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CANmVVwffPWKiJgJzE9b5BM2sVVc7aLtM6q0d0vngSenHdN%3DbOg%40mail.gmail.com.

No comments:

Post a Comment