1个回答

  1. 您可以导入以下内容:

    from django.conf import settings
    
    

    ,然后您可以通过执行settings.variable来访问设置文件中设置的变量

Leave a Reply

Your email address will not be published. Required fields are marked *

You can use these HTML tags and attributes <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>