Skip to content

Instantly share code, notes, and snippets.

@jaredlockhart
Created February 9, 2016 21:15
Show Gist options
  • Save jaredlockhart/cafe9a4ad3c156eab16a to your computer and use it in GitHub Desktop.
Save jaredlockhart/cafe9a4ad3c156eab16a to your computer and use it in GitHub Desktop.
docker run --net=host -t leaderboard sh -c 'echo "from leaderboard.locations.models import Country;Country.objects.all().delete()" | python manage.py shell; python manage.py migrate; sh ./scripts/setup_countries.sh'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment