Answer the question
In order to leave comments, you need to log in
How to give a link to a regular html page in django without a template?
Question: usually (I used to do this) a link in Django is formed on a template like
I now need to link to a static html page. It also looks standard,
but django does not see such links and does not find anything on them. What could be wrong here?
Specifically, I need to give a link in the header menu to the page about the company. Variants tried both with direct, and with the relative link. Both get 404 errors.<a href ={% url "имя шаблона"%}>ссылка</а>.
<a href="адрес ссылки">ссылка</a>
<a href="/templates/prosvet/about_us.html">О нас</a>
<a href="/about_us.html">О нас</a>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question