Add Kanban board, epics, notifications, external sharing, and related API endpoints; update README and install required packages such as django‑q2, openpyxl, and others.
39 lines
969 B
Python
Executable File
39 lines
969 B
Python
Executable File
#!/usr/bin/env python
|
|
"""Django's command-line utility for administrative tasks."""
|
|
|
|
import os
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
import environ
|
|
|
|
env_path = Path(__file__).resolve().parent / ".env"
|
|
env = environ.Env()
|
|
environ.Env.read_env(env_path)
|
|
|
|
|
|
def main():
|
|
"""Run administrative tasks."""
|
|
os.environ.setdefault(
|
|
"DJANGO_SETTINGS_MODULE",
|
|
env("DJANGO_SETTINGS_MODULE", default="config.settings.production"),
|
|
)
|
|
|
|
try:
|
|
from django.core.management import execute_from_command_line
|
|
except ImportError as exc:
|
|
raise ImportError(
|
|
"Couldn't import Django. Are you sure it's installed and "
|
|
"available on your PYTHONPATH environment variable? Did you "
|
|
"forget to activate a virtual environment?"
|
|
) from exc
|
|
execute_from_command_line(sys.argv)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
env = environ.Env()
|
|
# Read .env file, if it exists
|
|
environ.Env.read_env()
|
|
|
|
main()
|