Created
October 8, 2019 15:22
-
-
Save robdmc/5b47c50811f0118bfd00cdfaef44e141 to your computer and use it in GitHub Desktop.
Script to debug ambition
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /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