Exesize
/
manage.py
22 строки · 662.0 Байт
1#!/usr/bin/env python
2"""Django's command-line utility for administrative tasks."""
3import os4import sys5
6
7def main():8"""Run administrative tasks."""9os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'config.settings')10try:11from django.core.management import execute_from_command_line12except ImportError as exc:13raise ImportError(14"Couldn't import Django. Are you sure it's installed and "15"available on your PYTHONPATH environment variable? Did you "16"forget to activate a virtual environment?"17) from exc18execute_from_command_line(sys.argv)19
20
21if __name__ == '__main__':22main()23