Django app deployment

40 views
Skip to first unread message

Eugene TUYIZERE

unread,
Feb 1, 2021, 6:50:16 AM2/1/21
to django...@googlegroups.com
Dear Team,

How to connect a django application to a Database that is on a different machine with an application file? I mean, if the application files are on the machine(server) A and database is on the machine(server) B

Regards,
--
TUYIZERE Eugene

Msc Degree in Mathematical Science

African Institute for Mathematical Sciences (AIMS Cameroon)
Crystal Garden-Lime, Cameroon


Bsc in Computer Science

UR-Nyagatare Campus

Email: eugene....@aims-cameroon.org
           eugenet...@gmail.com

Tel: (+250) 7 88 26 33 38, (+250) 7 22 26 33 38

Kasper Laudrup

unread,
Feb 1, 2021, 6:54:39 AM2/1/21
to django...@googlegroups.com
On 01/02/2021 12.49, Eugene TUYIZERE wrote:
>
> How to connect a django application to a Database that is on a different
> machine with an application file? I mean, if the application files are
> on the machine(server) A and database is on the machine(server) B
>

Simple enough. Have a look at the HOST setting:

https://docs.djangoproject.com/en/3.1/ref/settings/#std:setting-HOST

Of course, the configuration depends on which database you're running.

Kind regards,

Kasper Laudrup

Eugene TUYIZERE

unread,
Feb 3, 2021, 6:17:39 AM2/3/21
to django...@googlegroups.com
Dear Kasper,

Thank you very much for the documentation.

regards, 

--
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/afd20a73-89b5-68df-fa71-b2786cd8bd99%40stacktrace.dk.
Reply all
Reply to author
Forward
0 new messages