How i can set templates dir for Flask app ?
Followed by 4 people
Hello
I have this structure
Project
|__ application
|__ static
|__ templates
|__ modules
|
I have this structure
Project
|__ application
|__ static
|__ templates
|__ modules
|
Please sign in to leave a comment.
you should select template language in Settings->"Python Template Languages" and then right click on the folder and choose "Mark directory as template"
I've marked the templates directory as such and checked that html/jinja2 is selected as template language in settings.
Still getting warnings that the template files cannot be found in these blocks of code:
@Monte - Have you turned it off and on again? Respectively, have you closed IntelliJ and opened it again? This did the trick for me.