Yes. That's exactly you should do.
If you are not adding any extra attributes to the default django user model. You dont need the one thats shown above.
Just use the default django user model.
On Thu, Jun 6, 2019 at 5:18 PM Gaurav Sahu <gaurav.sahu34@gmail.com> wrote:
I already have a model User which inherits Django user model.My question is do I have to create another model Profile which will have one to one relation with the Django user model? Or just delete my existing User model?On Wed, Jun 5, 2019 at 7:57 PM Chetan Ganji <ganji.chetan@gmail.com> wrote:just create another model in the accounts app and put a one to one key to the User Model of django.
Import it from settings instead of harcoding it. Give it a relevant related_name.--On Wed, Jun 5, 2019 at 6:23 PM Gaurav Sahu <gaurav.sahu34@gmail.com> wrote:Hy Everyone,--I have a Django website which has multiple apps one of the apps is accounts app. accounts app is responsible for user sign up and authentication. Now I want to create a user profile in my website and that user will be the same across all of my web apps. how can I implement this?
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/85bdf45d-ed9e-4a85-a9ce-df25e8b9e2c3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/aNQbykpyi2E/unsubscribe.
To unsubscribe from this group and all its topics, 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 https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAMKMUjsYPYPNCsC5OSGbPZC8DUNhsjPNvuvcjGPMj-dZ4TVYJg%40mail.gmail.com.
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+unsubscribe@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/CAGerwqvc%3DUYA-gm65QdjSYBkwX_1EfBESquc%2BPQ8KNC2e_6TAQ%40mail.gmail.com.
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+unsubscribe@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/CAMKMUjvg8z0%3DEbjUxzuDbXZ%2BSECOj1NziCBKCCEskxuihdkP_w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:
Post a Comment