J
J
Jekson2020-08-18 17:01:50
Django
Jekson, 2020-08-18 17:01:50

How to run django application via nginx on local machine?

The question sounds probably strange (for me, so for sure). I am deploying a django application on the local, the application is somehow tricky and it needs to be launched on the local using nginx (I don’t know why).
On the prod, I had to set up a bunch of django + nginx + uwsgi according to ready-made examples of which there are plenty on the network. But I don't know what to do with the locale.
I have a file that, according to the instructions for deploying the application, I put in
/etc/nginx/sites-enabled/cbf.conf
and there is no more information.
Now I'm not catching up, but how to make the django application contact nginx at startup?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dr. Bacon, 2020-08-18
@bacon

And we guess what's there, right? And so it’s standard, or proxy runserver (for a dev, maybe for a local one it’s enough for them) or through an app server, the same uwsgi.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question