开发者

django custom command

How i can get the current settings in a custom command and not the defaul setti开发者_运维技巧ngs?


With the attribut can_import_settings = True in your class Command


from django.conf import settings

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜