running the development server of django

  1. Open a terminal window.

  2. Navigate to the directory where your Django project is located, using the 'cd' command. For example: cd path/to/your/django/project

  3. 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

  4. Run the Django development server using the 'python' command, specifying the 'manage.py' script and 'runserver' command: python manage.py runserver

  5. 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/).

  6. 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.

  7. 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'.

  8. If you made changes to your Django project's code, restart the development server by repeating steps 4-6.