loader.py 文件源码

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

项目:liberator 作者: libscie 项目源码 文件源码
def migrations_module(cls, app_label):
        """
        Return the path to the migrations module for the specified app_label
        and a boolean indicating if the module is specified in
        settings.MIGRATION_MODULE.
        """
        if app_label in settings.MIGRATION_MODULES:
            return settings.MIGRATION_MODULES[app_label], True
        else:
            app_package_name = apps.get_app_config(app_label).name
            return '%s.%s' % (app_package_name, MIGRATIONS_MODULE_NAME), False
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号