How can I switch AUTH_USER_MODEL for each application?

22 views
Skip to first unread message

Ayu Nakata

unread,
Aug 26, 2019, 7:48:42 AM8/26/19
to Django users
I want to use each database in each application.
I tried using different settings.py for each application, but it didn't work.
Can you give me some advice?
Thank you.

Sim

unread,
Aug 26, 2019, 10:12:06 AM8/26/19
to django...@googlegroups.com

DATABASES in settings.py is a dict() and use database_routers.

Good luck

--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/d6713c1f-a0e0-439a-9731-c04f9f2f9217%40googlegroups.com.

Mario R. Osorio

unread,
Aug 27, 2019, 9:16:39 AM8/27/19
to Django users
I think this is what you're looking for:




On Monday, August 26, 2019 at 10:12:06 AM UTC-4, Sim wrote:

DATABASES in settings.py is a dict() and use database_routers.

Good luck

On Mon, Aug 26, 2019 at 12:47 PM Ayu Nakata <nakatae...@gmail.com> wrote:
I want to use each database in each application.
I tried using different settings.py for each application, but it didn't work.
Can you give me some advice?
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...@googlegroups.com.

Ayu Nakata

unread,
Aug 29, 2019, 5:46:49 AM8/29/19
to Django users
Thank you so much!

2019年8月27日火曜日 22時16分39秒 UTC+9 Mario R. Osorio:
Reply all
Reply to author
Forward
0 new messages