How to run this command in
wsgi.py file in django
wsgi.py files looks like
import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "django_project.settings") from django.core.wsgi import get_wsgi_application application = get_wsgi_application()
My Command that i want to add in wsgi.py file
python manage.py runserver 127.0.0.1:8000
I want to run this command using wsgi.py file how to add this command into it.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Click below to sign up and get $100 of credit to try our products over 60 days!