Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Run Server | Get Started
Django: First Dive

Run ServerRun Server

In programming, the term "run server" generally refers to starting a server process that listens for incoming requests and handles them accordingly. The server is a program that runs on a computer and responds to client requests, typically over a network or the internet.

When you run a server in the context of web development, it means you are starting a program or service that can handle HTTP requests. This server program waits for incoming requests from clients (such as web browsers) and responds to those requests by providing the requested resources, data, or performing specified actions.

In the case of Django, the "run server" term specifically refers to starting the development server provided by Django. This server allows you to run your Django application locally, enabling you to test and view your web application in a development environment.

How to run server?

Now you have the created Django project and you can run the server via manage.py file.

manage.py is a Python script that helps you to manage the project.

This script executes using the Python interpreter (python or python3 command in the terminal with parameters separated by spaces ).

To run the Django server, you need to perform the following command in the terminal:

Usually, port 8000 is used for testing, but if that doesn't work, you can use 7000.

Note

You can omit port and run python manage.py runserver command. In this case, the server will start on port 8000.

So, let's run the Django server using the python manage.py runserver 7000 command in the terminal:

When you access the server's address in a web browser after successfully setting up and running the Django server, you may see a page that displays the message 'The install worked successfully.' This page serves as a confirmation that the Django server is running properly and that you can proceed with building your web application.

The The install worked successfully page typically indicates that the initial setup and configuration of the Django project were completed without any issues. It assures you that the server is ready to serve your Django application and that you can start developing and accessing the different pages and features of your web application through the server's address.

This page is usually a default or placeholder page provided by Django to indicate that the server is functioning correctly. You can customize and replace this page with your own content as you build your Django application.

What command should be used in the terminal to run the server?

Select the correct answer

Everything was clear?

Section 1. Chapter 5
course content

Course Content

Django: First Dive

Run ServerRun Server

In programming, the term "run server" generally refers to starting a server process that listens for incoming requests and handles them accordingly. The server is a program that runs on a computer and responds to client requests, typically over a network or the internet.

When you run a server in the context of web development, it means you are starting a program or service that can handle HTTP requests. This server program waits for incoming requests from clients (such as web browsers) and responds to those requests by providing the requested resources, data, or performing specified actions.

In the case of Django, the "run server" term specifically refers to starting the development server provided by Django. This server allows you to run your Django application locally, enabling you to test and view your web application in a development environment.

How to run server?

Now you have the created Django project and you can run the server via manage.py file.

manage.py is a Python script that helps you to manage the project.

This script executes using the Python interpreter (python or python3 command in the terminal with parameters separated by spaces ).

To run the Django server, you need to perform the following command in the terminal:

Usually, port 8000 is used for testing, but if that doesn't work, you can use 7000.

Note

You can omit port and run python manage.py runserver command. In this case, the server will start on port 8000.

So, let's run the Django server using the python manage.py runserver 7000 command in the terminal:

When you access the server's address in a web browser after successfully setting up and running the Django server, you may see a page that displays the message 'The install worked successfully.' This page serves as a confirmation that the Django server is running properly and that you can proceed with building your web application.

The The install worked successfully page typically indicates that the initial setup and configuration of the Django project were completed without any issues. It assures you that the server is ready to serve your Django application and that you can start developing and accessing the different pages and features of your web application through the server's address.

This page is usually a default or placeholder page provided by Django to indicate that the server is functioning correctly. You can customize and replace this page with your own content as you build your Django application.

What command should be used in the terminal to run the server?

Select the correct answer

Everything was clear?

Section 1. Chapter 5
some-alt