You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 20, 2021. It is now read-only.
My error message : [WinError 2] The system cannot find the file specified : 'C:/myapps/static/media_root/index.html'
And my localhost:8000 directs me to 404 Not Found
I found this code in static.py. I think is somehow related to the issue.
classCling(object):
"""A stupidly simple way to serve static content via WSGI. Serve the file of the same path as PATH_INFO in self.datadir. Look up the Content-type in self.content_types by extension or use 'text/plain' if the extension is not found. Serve up the contents of the file or delegate to self.not_found. """block_size=16*4096index_file='index.html'not_found=StatusApp('404 Not Found')
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I followed the tutorial to set the MEDIA_ROOT.
My settings at below:
My error message :
[WinError 2] The system cannot find the file specified : 'C:/myapps/static/media_root/index.html'
And my
localhost:8000
directs me to404 Not Found
I found this code in
static.py
. I think is somehow related to the issue.The text was updated successfully, but these errors were encountered: