Answers for "../ file path"

0

pathlib path of current file

from pathlib import Path

BASE_DIR = Path(__file__).resolve().parent.parent
TEMPLATES_DIR = BASE_DIR.joinpath('templates')
Posted by: Guest on April-25-2020
0

html relative path

<!--The ./ means the contact.html file is in the same file 
as the file that is linked to it-->
<a href="./contact.html">Contact</a>
Posted by: Guest on August-18-2020

Browse Popular Code Answers by Language