1
#!/usr/bin/env python
2 6
import os
3 6
import sys
4

5 6
if __name__ == "__main__":
6 6
    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "cyborgbackup.settings")
7 6
    try:
8 6
        from django.core.management import execute_from_command_line
9 0
    except ImportError:
10
        # The above import may fail for some other reason. Ensure that the
11
        # issue is really that Django is missing to avoid masking other
12
        # exceptions on Python 2.
13 0
        try:
14 0
            import django # noqa
15 0
        except ImportError:
16 0
            raise ImportError(
17
                "Couldn't import Django. Are you sure it's installed and "
18
                "available on your PYTHONPATH environment variable? Did you "
19
                "forget to activate a virtual environment?"
20
            )
21 0
        raise
22 6
    execute_from_command_line(sys.argv)

Read our documentation on viewing source code .

Loading