Issue
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
Solution
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.
Answered By - K.D
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.