running the development server of django
Open a terminal window.
Navigate to the directory where your Django project is located, using the 'cd' command. For example:
cd path/to/your/django/project
Activate the virtual environment for your Django project, if you are using one. Use the 'source' command on Unix-based systems or 'activate' on Windows:
source venv/bin/activate # Unix-based systems activate # Windows
Run the Django development server using the 'python' command, specifying the 'manage.py' script and 'runserver' command:
python manage.py runserver
Wait for the server to start, and you should see output indicating that the development server is running at a specific IP address and port (usually http://127.0.0.1:8000/).
Open a web browser and navigate to the provided URL, usually http://127.0.0.1:8000/. You should see the default Django welcome page or your application if you have already configured it.
To stop the development server, go back to the terminal and press 'Ctrl + C'. Confirm that you want to stop the server by typing 'yes' and pressing 'Enter'.
If you made changes to your Django project's code, restart the development server by repeating steps 4-6.