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
我收到此错误Error parsing <!DOCTYPE HTML...,就像它没有找到资源一样,但我传递了正确的 url:
Error parsing <!DOCTYPE HTML...
“http://10.0.2.2/portablevision/webservice.php”;
无论如何,这是我的 PHP 网络服务:
<?php $response = array(); require_onc