3 ##############################################################################
4 # Copyright (c) 2016 Max Breitenfeldt and others.
6 # All rights reserved. This program and the accompanying materials
7 # are made available under the terms of the Apache License, Version 2.0
8 # which accompanies this distribution, and is available at
9 # http://www.apache.org/licenses/LICENSE-2.0
10 ##############################################################################
16 if __name__ == "__main__":
17 os.environ.setdefault("DJANGO_SETTINGS_MODULE", "pharos_dashboard.settings")
19 from django.core.management import execute_from_command_line
21 # The above import may fail for some other reason. Ensure that the
22 # issue is really that Django is missing to avoid masking other
23 # exceptions on Python 2.
28 "Couldn't import Django. Are you sure it's installed and "
29 "available on your PYTHONPATH environment variable? Did you "
30 "forget to activate a virtual environment?"
33 execute_from_command_line(sys.argv)