2π
β
In your nginx service you have mounted the volume as below. Where static_volume is the host volume and /app/sub_app/static
is the container directory where it is mounted to.
static_volume:/app/sub_app/static
But in your nginx config file you are routing the static requests to /static_volume/
. Instead you need to point it to your container directory as shown below
location /static/ {
alias /app/sub_app/static/;
}
π€LiquidDeath
0π
default.conf:
instead of this:
location /static/ {
alias sub_app/static/;
}
try this:
location /static/ {
alias ./static/;
}
π€Manoj Tolagekar
- [Django]-How can I display a meaningful login error messages to user within python-social-auth?
- [Django]-Django default foreign key value for users
- [Django]-In django how can i create a model instance from a string value?
Source:stackexchange.com