In blog.py
template_dir = os.path.join(os.path.dirname(file), ‘templates’)
^I know this is the way to search for the templates folder in the same directory, but what about sibling directories (i.e. other folders of the current folder’s parent)
The problem is:
Current File
WebAppName/Backend/blog.py
How Do I Reference?
WebAppName/Frontend/templates/
What should I change template_dir to in order to access templates in the Frontend folder
1 Answer