This commit is contained in:
erichhasl
2017-11-17 23:56:23 +01:00
2 changed files with 59 additions and 0 deletions
+6
View File
@@ -1,8 +1,14 @@
#!/usr/bin/env python3
import os
import sys
import platform
if __name__ == "__main__":
if platform.system() == "Darwin":
import pymysql
pymysql.install_as_MySQLdb()
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "sas_web.settings")
from django.core.management import execute_from_command_line