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 | |||
---|---|---|---|
Name | Version | ||
Python | 3.9.1 | ||
Django | 3.1.5 |
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