IceCube092
IceCube092

Reputation: 31

How to deploy Django app with nginx on non-root url?

I have some boxed solutions written on Django with docker-compose. I want to deploy it on the same server and specify different root url. But if I do it Django can't find static files, because it requests this files from root url, instead of specified url. How can I say to Django that root is another url?

I was trying different examples for deploy Django with Nginx and nothing works.

Upvotes: 1

Views: 125

Answers (1)

Amir Mohseni
Amir Mohseni

Reputation: 91

To solve this problem, I suggest you read this article..

https://testdriven.io/blog/dockerizing-django-with-postgres-gunicorn-and-nginx/

Upvotes: 0

Related Questions