Tuesday, January 12, 2021

How to run Django's Development Server

Hi,

In this post I am going to talk about, how to run Django's development server with different options...

As we all know the framework django is packed along with a development server to ease the job during development

Make sure you have the following prerequisites in place before we proceed...

Prerequisites
NameVersion
Python3.9.1
Django3.1.5

In order to have the development server, we should have a valid project created before hand, to create a project in django, you can make use of the link below for creating a project


From the Project's home directory, you can try the following options to have the server up.

To run the server with default settings
$ python manage.py runserver

To run the server on port 8080
$ python manage.py runserver 8080

To run the server on a specific port with an IP
$ python manage.py runserver 0:8080

The above command can be expanded as...

$ python manage.py runserver 0.0.0.0:8080

To run the server with different IP
$ python manage.py runserver 192.168.1.5:8080


Well that is it, we have discussed possible different options of running the development server in dango web application framework.

Hope you had great time, Thanks.

No comments:

Post a Comment

Addressing Modes of 8080 / 8085 MicroProcessor

Hi,   In this post I am going to talk about different addressing modes of 8080/8085...without much talking let us get into the topic.   Ther...