如何使用manage.py加载.sql文件 [英] How to load .sql file with manage.py
本文介绍了如何使用manage.py加载.sql文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我从一台生产服务器中获得一个.sql文件,现在正尝试将其加载到另一台服务器的数据库中.我尝试了python manage.py loaddata,但它给了我一个错误
I have a .sql file from one of my production servers, and am now trying to load it into the database of another. I tried python manage.py loaddata, but its giving me an error
CommandError: Problem installing fixture 'social': sql is not a known serialization format.
如何使用manage.py将数据从.sql文件加载到postgres中?
How can I load my data into postgres from a .sql file with manage.py ?
推荐答案
查看全文