Files
plane/apps/api/manage.py
T
625e859ddf [WEB-6506] feat: adding new plane cli to run management commands (#6161)
* feat: adding new plane cli to run management commands

* fix: docker file changes

* fix: module imports

* Use manage.py directly for the standalone plane command

---------

Co-authored-by: Dheeraj Kumar Ketireddy <[email protected]>
2026-03-09 22:18:23 +05:30

32 lines
1.0 KiB
Python

#!/usr/bin/env python
# SPDX-FileCopyrightText: 2023-present Plane Software, Inc.
# SPDX-License-Identifier: LicenseRef-Plane-Commercial
#
# Licensed under the Plane Commercial License (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# https://plane.so/legals/eula
#
# DO NOT remove or modify this notice.
# NOTICE: Proprietary and confidential. Unauthorized use or distribution is prohibited.
import os
import sys
def main():
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "plane.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__":
main()