Home > Blockchain >  how to sort django templates folder
how to sort django templates folder

Time:10-07

i made my first blog templates in order blog/templates/sth.html becuz it didnt find in this order blog/templates/blog/sth.html but now i made a new app and made it in order users/templates/registiration/login.html and got this error Using engine django:

django.template.loaders.app_directories.Loader: C:\Users\NDarksoul\.virtualenvs\blog-PCvr0qFP\lib\site-packages\django\contrib\admin\templates\blog\base.html (Source does not exist)

django.template.loaders.app_directories.Loader: C:\Users\NDarksoul\.virtualenvs\blog-PCvr0qFP\lib\site-packages\django\contrib\auth\templates\blog\base.html (Source does not exist)

django.template.loaders.app_directories.Loader: C:\projects\rightnow\blog\blog\templates\blog\base.html (Source does not exist)

django.template.loaders.app_directories.Loader: C:\projects\rightnow\blog\users\templates\blog\base.html (Source does not exist)

can u hlp me pls how to fix this mess

CodePudding user response:

in the main templates folder, all folders for each app then add in these folder their templates depend on the app and the main template in templates folder

enter image description here

  • Related