Why variables declared in settings.py are not visible in models.py if declared outside model class?

后端 未结 0 814
名媛妹妹
名媛妹妹 2021-02-14 08:05

I have the following code in models.py

from django.conf import settings
from django.db import models


SOME_VAR_FROM_SETTINGS = settings.FAS_BR_ROOT_SITE

class F         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题