unable to start Django 3.0.7 on Centos 8

Hello,

Installed Django 3.7.0 on Centos 8 but, the server is not starting on port 8000.

it is stuck at the below prompt.

@localhost djangoproject]$ python3 manage.py runserver 0.0.0.0:8000
Watching for file changes with StatReloader
Performing system checks…

System check identified no issues (0 silenced).
June 17, 2020 - 14:25:52
Django version 3.0.7, using settings ‘djangoproject.settings’
Starting development server at http://0.0.0.0:8000/
Quit the server with CONTROL-C.

if I add port 8000 to httpd.conf then I get the below error message:
@localhost djangoproject]$ python3 manage.py runserver 0.0.0.0:8000
Watching for file changes with StatReloader
Performing system checks…

System check identified no issues (0 silenced).
June 17, 2020 - 14:34:43
Django version 3.0.7, using settings ‘djangoproject.settings’
Starting development server at http://0.0.0.0:8000/
Quit the server with CONTROL-C.
Error: That port is already in use.

In your first example, the fact that you’re not getting any error messages means that it did work correctly.

Remove the port 8000 from your httpd.conf file, rerun the runserver command, then point your browser at it - you should get your response.

Hello Ken,

Thanks for your response…

I have tried that even before posting here but, it still doesn’t work.

I don’t get this message when I do the test run:
Django application is now started and runs on port 8000.

thanks for your help…

Kiran

Does a manage.py check command tell you that there were no issues?

(Note: I don’t get the message Django application is now started and runs on port 8000. when I use manage.py runserver 0.0.0.0:8000 either. What is telling you that you should be seeing something like that?)

Also, when you tried to access it using a browser, were you running the browser on that same CentOS system? (Can you describe your development environment a little more?)