Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在本地服务器中开发的站点中使用平面页面。我需要备份平面页面的数据,以便在最终服务器中使用。有谁知道该怎么做?
在你的本地服务器上运行这个:
python manage.py dumpdata flatpages --indent=2 > backup.json
然后将 backup.json 复制到您的最终服务器并加载它:
python manage.py loaddata backup.json