In this article, I will share the following two points that I was addicted to when building the title environment on windows.
--Mod_wsgi filename, location, extension --How to describe the file path where the static file is stored
I tried to install mod_wsgi with pip, referring to article by h_nt21.
In the above article, after installation
/Python35/mod_wsgi.so
Was written to be made.
However, no such file was created.
actually,
/Python35/lib/site-packages/mod_wsgi/server/mod_wsgi.cp35-win_amd64.pyd
File was created.
This could be treated as the same as the above file.
This is because I didn't know the style of windows. In nginx, when sending to a static file wrapped outside, I wrote as follows.
location \static\ {
alias "Drive:¥pass¥to¥static¥";
}
Correctly,
location \static\ {
alias "Drive:/pass¥to/static/";
}
is.
I copied the location of the static file as a path and pasted it, and it became the above. To be correct, it was necessary to separate the paths with / as in the normal (unix etc.) file system instead of \ (backslash) as shown below.
As an aside, STATIC_ROOT in Django's settings.py could be a normal . So I was addicted to it
Recommended Posts