Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Configure your web server to serve static files. For example, in nginx:

location /m/ {
    alias /path/to/static/files/; #path should be the same as STATIC_ROOT in settings.py
    autoindex off;
    expires 30d;
}

Configure your web server to serve static files. For example, in nginx:

location /m/ {
{ # url should be the same as STATIC_URL in settings.py in this case it's /m/
    alias /path/to/static/files/; #path should be the same as STATIC_ROOT in settings.py
    autoindex off;
    expires 30d;
}