manage.py 336 Bytes
Newer Older
1 2 3
#!/usr/bin/env python
import os
import sys
4
import dotenv
5 6

if __name__ == "__main__":
7 8 9
    if not os.getenv('DOCKER'):
        dotenv.read_dotenv('./.env')

Zac Wood's avatar
Zac Wood committed
10
    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings.settings")
11 12 13 14

    from django.core.management import execute_from_command_line

    execute_from_command_line(sys.argv)
15