server/src/manage.py
author ymh <ymh.work@gmail.com>
Fri, 22 Jul 2016 23:56:47 +0200
changeset 81 709541e05240
parent 0 71a42c20fc86
permissions -rwxr-xr-x
Small refactoring for tracking handler to correct a but in unregister and also allow to switch user when the api is called with the act_as parameter

#!/usr/bin/env python
import os
import sys

if __name__ == "__main__":
    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "metaeducation.settings.dev")

    from django.core.management import execute_from_command_line

    execute_from_command_line(sys.argv)