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