From e5ebd5cf5ce949c82f8b395865e220d1bc40f53e Mon Sep 17 00:00:00 2001 From: "Md. Babul Hasan (NoYoN)" Date: Sat, 26 Aug 2023 20:30:29 +0600 Subject: [PATCH] new django command + update Added the command which is used to deploy django project in local network and fixes a command --- backend/django.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/django.py b/backend/django.py index 50f53bd8..6e234e2e 100644 --- a/backend/django.py +++ b/backend/django.py @@ -89,7 +89,8 @@ django-admin makemigrations # create new migrations to the database based on the changes detected in the models django-admin migrate # synchronize the database state with your current state project models and migrations django-admin remove_stale_contenttypes # Deletes stale content types (from deleted models) in your database.y. -django-admin runserver # start the development webserver at 127.0.0.1 with the port default 8000 +python manage.py runserver # start the development webserver at 127.0.0.1 with the port default 8000 +python manage.py runserver 0.0.0.0:# start the development webserver at device ip with the port and accessible in local network django-admin sendtestemail # Sends a test email to the email addresses specified as arguments. django-admin shell # Runs a Python interactive interpreter. Tries to use IPython or bpython, if one of them is available. Any standard input is executed as code. django-admin showmigrations # Shows all available migrations for the current project.