Configuring django settings to work with 1.4.1. Loading template error

前端 未结 2 938
春和景丽
春和景丽 2021-02-13 06:21

Here is the error I got:

ImproperlyConfigured: Error importing template source loader django.template.loaders.filesystem.load_template_source: \"\'module\' obje         


        
2条回答
  •  走了就别回头了
    2021-02-13 06:54

    1. Open the ‘settings.py‘ file in the folder which contains the extracted contents of the Twissandra project.
    2. Search, ‘TEMPLATE_LOADERS=(‘ and within it, search, ‘django.template.loaders.filesystem.load_template_source‘. Comment this line and add, ‘django.template.loaders.filesystem.Loader‘.
    3. Similarly, within ‘TEMPLATE_LOADERS=(‘, search, ‘django.template.loaders.app_directories.load_template_source‘, and replace it with, ‘django.template.loaders.app_directories.Loader‘.

    P.S. I solved my problem and thanks How to fix the Django error displayed when loading Twissandra for the first time?

提交回复
热议问题