配置
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "untitled.settings") import django django.setup() from test01.models import T
配置
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "untitled.settings") import django django.setup() from test01.models import T
转载于:https://www.cnblogs.com/benson321/p/10629957.html