Hi,

I really doubt this is a good idea. But if you want to user the same
database for both applications, you will need to map up the database user
model in django.

You can find information about that on the following pages:
https://docs.djangoproject.com/en/1.11/ref/contrib/auth/
https://docs.djangoproject.com/en/1.11/howto/legacy-databases/

As I said though, I don't think this is a good idea, because the user
objects in rails and django probably have different properties that they
need / don't need.

Regards,

Andréas

2017-11-12 7:54 GMT+01:00 Asif Saifuddin <auv...@gmail.com>:

> Hi,
>
> I have and existing live project running on rails. I have to expose the
> API's using django for now. I have generated models and edited them to
> create django model and mapping and exposed some API locally.
>
> I have one issue which is confusing my mind.
>
> That is how would I use the existing users/authors etc from DB to django
> User management system?
>
> Any suggestion would be appreciated.
>
> Regards,
>
> Asif
>
>
> --
> 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/2b085937-4b66-480d-86e0-01cd018d1f8b%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/2b085937-4b66-480d-86e0-01cd018d1f8b%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/CAK4qSCfZCuh3yk5%2B9G_Ti9hhi8g1VgVDYBzAKBa1j4BiuveU3A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to