manage.py 884 Bytes
Newer Older
1
#!/usr/bin/env python3
2

3
# Copyright 2013 The Distro Tracker Developers
4
# See the COPYRIGHT file at the top-level directory of this distribution and
5
# at https://deb.li/DTAuthors
6
#
7 8
# This file is part of Distro Tracker. It is subject to the license terms
# in the LICENSE file found in the top-level directory of this
9
# distribution and at https://deb.li/DTLicense. No part of Distro Tracker,
10 11
# including this file, may be copied, modified, propagated, or distributed
# except according to the terms contained in the LICENSE file.
12

13 14 15 16
import os
import sys

if __name__ == "__main__":
17
    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "distro_tracker.project.settings")
18 19
    os.environ.setdefault("DJANGO_LIVE_TEST_SERVER_ADDRESS",
                          "localhost:8081-8085")
20 21 22 23

    from django.core.management import execute_from_command_line

    execute_from_command_line(sys.argv)