Django “TemplateDoesNotExist ” Error but “Using loader django.template.loaders.app_directories.Loader” File Exists

前端 未结 7 1851
我在风中等你
我在风中等你 2021-01-05 19:05

Template Loader finds the template but template is not loaded

TemplateDoesNotExist at /cardpayment/

cardpayment.html

Request Method:     G         


        
相关标签:
7条回答
  • 2021-01-05 19:48

    Found a fix. I am not sure why but the new TEMPLATES directive (Django 1.8+) does not seem to be working. I commented that out and put in the old style

    TEMPLATE_DIRS = (
        '/home/sdr/sl/agryp/templates/',
     )
    

    directive, everything started working again. ARGH!

    Will need to work out why the new TEMPLATES directive is causing me problems.

    Thanks for trying to help guys!

    0 讨论(0)
提交回复
热议问题