Question

I just installed Django and create a project and an app following the basic tutorial part 1, I created a virtualenv since centOS default python version is 2.4.3, I also created a subdomain to work on this for the development phase. when I try to access like dev.domain.com/admin/ or dev.domain.com/ I get a 404 error, it's like django is not even there. When I run the server I get a normal response:

(python2.7env)-bash-3.2# python manage.py runserver Validating models...

0 errors found February 22, 2014 - 23:54:07 Django version 1.6.2, using settings 'ct_project.settings' Starting development server at http://127.0.0.1:8000/

Any ideas what I'm missing?

EDIT:after starting the server correctly(with the right ip) I tried again and as a result I got the browser hanging. Then I went to tried an online port scanner and found out that the port 8000 is not responding, any ideas what I can try next?

Thanks

Was it helpful?

Solution 2

The issue was solved by contacting the support service and asking them to open the port 8000 for me.

OTHER TIPS

You need to have you hosts entry on /etc/hosts like the following one

   127.0.0.1     dev.domain.org

By default Django start the dev web server on port 8000 and you browser is looking for the server on port 80 (default port for webservers) so you need to add the port at the end of the url

   http://dev.domain.com:8000.

if you want to start the server in default port 80 you need to specify it (migth need root or sudo):

    python manage.py runserver http://dev.domain.com:80
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top