Error when using django.template

后端 未结 6 925
面向向阳花
面向向阳花 2021-01-31 05:02

I\'m a beginner in django and I got a lot of errors when using template module from django. The following works from the python shell:

from django import templat         


        
6条回答
  •  北海茫月
    2021-01-31 05:40

    The error message states that you need to set the DJANGO_SETTINGS_MODULE variable. Running export DJANGO_SETTINGS_MODULE=mysite.settings, worked for me.

提交回复
热议问题