Monday, February 1, 2021

Re: Django app deployment

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

--
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/afd20a73-89b5-68df-fa71-b2786cd8bd99%40stacktrace.dk.

No comments:

Post a Comment