Quantcast
Viewing all articles
Browse latest Browse all 2052

Serving static files in htdocs sub subdirectory

I have a problem serving static files in djangostack. I have installed djangostack in /opt/djangostack.

If I put, for example, bootstrap.js in /opt/djangostack/apache2/htdocs/js/bootstrap.js, I can refer it using from http://127.0.0.1/js/bootstrap.js

However, if I put bootstrap in /opt/djangostack/apache2/htdocs/static/js/bootstrap.js, I can't access if from http://127.0.0.1/static/js/bootstrap.js. It will return 404 Not Found.

How can I fix that?


Viewing all articles
Browse latest Browse all 2052

Trending Articles