Home > OS >  How do i run django application without port number
How do i run django application without port number

Time:11-17

How do i run django application without port number: i had tried Django: Run django app on server without port? but didn't work.

CodePudding user response:

Web services must bind a port on a interface of the system. So, you should specify a port number to run your Django application. The default port number for HTTP is 80, for HTTPS 443. But you can use a custom port between [1-65535]: For example;

python manage.py runserver 7000

CodePudding user response:

You may try the following:

python manage.py runserver 80

or if you don't have permissions (assuming you are using Linux):

sudo python manage.py runserver 80

Then, you can access your application: http://localhost/

  • Related