mirror of
https://github.com/status-im/cabot.git
synced 2025-02-24 10:28:06 +00:00
Once the virtualenv is activated, management commands can be run without the use of foreman/honcho with `manage.py <command>`.
14 lines
284 B
Python
Executable File
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)
|