The development server lets you see your Django website while you build it. It runs your site on your computer so you can test and fix things easily.
Development server and runserver in Django
python manage.py runserver [optional_port]
You run this command in your project folder where manage.py is located.
If you don't give a port, it uses 8000 by default (like http://127.0.0.1:8000/).
python manage.py runserver
python manage.py runserver 8080python manage.py runserver 0.0.0.0:8000
This command starts the Django development server on your local machine at http://127.0.0.1:8000/. You can open this address in your browser to see your website as you build it.
python manage.py runserver
The development server is for testing only. It is not secure or fast enough for real users.
If you change your code, the server reloads automatically so you see updates right away.
Use CONTROL-C in the terminal to stop the server when you are done.
The runserver command starts a simple web server on your computer.
It helps you see and test your Django site during development.
You can choose the port and make it accessible on your network if needed.