https://docs.djangoproject.com/en/4.0/howto/custom-management-commands/
Django admin commands can be run using
python manage.py <my_django_commands>
create the following directory in your app created by python manage.py startapp <my_app>
polls/ __init__.py models.py management/ __init__.py commands/ __init__.py _private.py closepoll.py tests.py views.py
** This is useful for dealing with db connection in docker, as db is avaialble, but connection takes time***
No comments:
Post a Comment