cmsmanage/manage.py

26 lines
727 B
Python
Raw Permalink Normal View History

#!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
2024-03-02 00:19:42 -05:00
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "cmsmanage.settings")
os.environ.setdefault("DJANGO_CONFIGURATION", "Dev")
try:
from configurations.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)
2022-01-24 23:37:04 -05:00
if __name__ == "__main__":
main()