Dump and Load Data
data dumping νκΈ°
python manage.py dumpdata
dump ν dataλ₯Ό data.json fileλ‘ λ§λ€κΈ°
python manage.py dumpdata > data.json
fixtures
directory λ§λ€κΈ°
fixtures
directory λ§λ€κΈ°.
βββ accounts
β βββ admin.py
β βββ apps.py
β βββ forms.py
β βββ __init__.py
β βββ migrations
β βββ models.py
β βββ templates
β β βββ accounts
β β βββ login.html
β β βββ profile.html
β β βββ signup.html
β β βββ update.html
β βββ tests.py
β βββ urls.py
β βββ views.py
βββ articles
β βββ admin.py
β βββ apps.py
β βββ fixtures
β β βββ articles
β β βββ data.json
β βββ forms.py
β βββ __init__.py
β βββ migrations
β β βββ 0001_initial.py
β β βββ 0002_comment.py
β β βββ 0003_auto_20200505_2001.py
β β βββ __init__.py
β βββ models.py
β βββ templates
β β βββ articles
β β βββ comment.html
β β βββ form.html
β β βββ index.html
β β βββ like.html
β βββ templatetags
β β βββ article_extras.py
β β βββ __init__.py
β β βββ __pycache__
β β βββ article_extras.cpython-36.pyc
β β βββ hashtags.cpython-36.pyc
β β βββ __init__.cpython-36.pyc
β βββ tests.py
β βββ urls.py
β βββ views.py
βββ a.txt
βββ crud
β βββ __init__.py
β βββ settings.py
β βββ urls.py
β βββ wsgi.py
βββ db.sqlite3
βββ latest.dump
βββ manage.py
βββ media
βββ Procfile
βββ README-images
βββ README.md
βββ requirements.txt
βββ runtime.txt
βββ src
β βββ django-debug-toolbar
βββ static
β βββ css
β βββ js
βββ templates
β βββ _accountdelete.html
β βββ base.html
β βββ _commentdelete.html
β βββ _deletemodal.html
β βββ _nav.html
β βββ _replies.html
βββ tree.txt
117 directories, 324 files
loaddata
$ python manage.py loaddata articles/data.json
Installed 113 object(s) from 1 fixture(s)
Last updated
Was this helpful?