cabot/manage.py
Peter Baumgartner 6d2d369d2d Puts manage.py on $PATH and reads .env by default
Once the virtualenv is activated, management commands can be run without
the use of foreman/honcho with `manage.py <command>`.
2014-03-05 17:29:41 -06:00

14 lines
284 B
Python
Executable File

#!/usr/bin/env python
import os
import sys
import dotenv
dotenv.read_dotenv()
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "cabot.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)