Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
How to run this command in wsgi.py file in django?
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.×