I am developing a website using Django framework. It works perfectly well using Django=True, however when I set Django=False, system could not find the other html files which are being accessed in <a href=... links. Let say, I am developing 'mysite', then the following code:
<li><a href="index-2.html"><i class="fab fa-dribbble"></i></a></li>
is present behind an icon on mysite. Then clicking the icon takes the user to 'mysite.com/index-2.html', however it throws "The requested resource was not found on this server" error.
And this happens only when we set Django=False and in production. No link on the homepage is working due to this.
EDIT-1: I've already reviewed:
Why does DEBUG=False setting make my django Static Files Access fail?
The static files are already working fine on my app because they are in 'assets' folder. The html files are in the root folder and somehow system is not able to find any file from root folder when debug is set to False. So my question is more regarding finding files at root folder using href links.
No error for files in 'assets' folder, but 404 for root folder files: