util.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:intel-manager-for-lustre 作者: intel-hpdd 项目源码 文件源码
def chroma_settings():
    """
    Walk back up parent directories until settings.py is found.
    Insert that directory as the first entry in sys.path.
    Import the settings module, then return it to the caller.
    """

    sys.path.insert(0, site_dir())
    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings")

    import settings
    return settings
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号