manage.py 881 B

123456789101112131415161718192021222324
  1. #!/usr/bin/env python
  2. # Copyright 2013 The Distro Tracker Developers
  3. # See the COPYRIGHT file at the top-level directory of this distribution and
  4. # at http://deb.li/DTAuthors
  5. #
  6. # This file is part of Distro Tracker. It is subject to the license terms
  7. # in the LICENSE file found in the top-level directory of this
  8. # distribution and at http://deb.li/DTLicense. No part of Distro Tracker,
  9. # including this file, may be copied, modified, propagated, or distributed
  10. # except according to the terms contained in the LICENSE file.
  11. import os
  12. import sys
  13. if __name__ == "__main__":
  14. os.environ.setdefault("DJANGO_SETTINGS_MODULE", "distro_tracker.project.settings")
  15. os.environ.setdefault("DJANGO_LIVE_TEST_SERVER_ADDRESS",
  16. "localhost:8081-8085")
  17. from django.core.management import execute_from_command_line
  18. execute_from_command_line(sys.argv)