ghost.py 文件源码

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

项目:ghost 作者: nir0s 项目源码 文件源码
def init(self):
        if self._local_path:
            dirname = os.path.dirname(self._local_path)
            if dirname and not os.path.isdir(dirname):
                os.makedirs(dirname)

        if not database_exists(self.db.url):
            create_database(self.db.url)
        # More on connection strings for sqlalchemy:
        # http://docs.sqlalchemy.org/en/latest/core/engines.html
        self.metadata.bind = self.db
        self.metadata.create_all()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号