Skip to content

Instantly share code, notes, and snippets.

@claudiokc
Last active December 6, 2018 21:00
Show Gist options
  • Save claudiokc/aae4f8eb051f259452432bc2ff2316a5 to your computer and use it in GitHub Desktop.
Save claudiokc/aae4f8eb051f259452432bc2ff2316a5 to your computer and use it in GitHub Desktop.
# Borrar el pk de auth.user
./manage.py dumpdata auth --exclude=auth.permission --output=../prodAuth.json
./manage.py dumpdata --indent=4 --all --natural-foreign --verbosity=3 --output=../prodAll.json --exclude=wagtailcore.pagerevision --exclude=wagtailcore.grouppagepermission --exclude=wagtailcore.groupcollectionpermission --exclude=auth --exclude=sessions
# El problema con los content_types es en las revisiones de wagtail "model": "wagtailcore.pagerevision",
export http_proxy=socks5://127.0.0.1:8086 https_proxy=socks5://127.0.0.1:8086
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment