AUTH_CMD to USER_CMD, updated workflows, Makefile, and docker-compose for user service

This commit is contained in:
A'zamov Samandar
2025-04-19 19:24:18 +05:00
parent 098dce9fdb
commit bc24faeedd
126 changed files with 30 additions and 32 deletions

24
user/manage.py Normal file
View File

@@ -0,0 +1,24 @@
#!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
from config.env import env
def main():
"""Run administrative tasks."""
os.environ.setdefault("DJANGO_SETTINGS_MODULE", env("DJANGO_SETTINGS_MODULE"))
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()