import os | |
import sys | |
def main(argv): | |
os.environ['DJANGO_SETTINGS_MODULE'] = "settings" | |
os.environ['DJANGO_IS_MANAGEMENT_COMMAND'] = '1' | |
from django.core.management import execute_from_command_line | |
execute_from_command_line(argv) | |
if __name__ == "__main__": | |
main(sys.argv) |