Skip to content

Instantly share code, notes, and snippets.

@robdmc
Created October 8, 2019 15:22
Show Gist options
  • Select an option

  • Save robdmc/5b47c50811f0118bfd00cdfaef44e141 to your computer and use it in GitHub Desktop.

Select an option

Save robdmc/5b47c50811f0118bfd00cdfaef44e141 to your computer and use it in GitHub Desktop.
Script to debug ambition
#! /usr/bin/env python
import os
import sys
import django
sys.path.append('/ambition')
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ambition.settings")
django.setup()
from entity.models import Entity
def main():
print('first entity is', Entity.objects.first())
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment