简体   繁体   中英

Django test-page returns 404 even though django is up and running

I'm trying to set up my first django-dev in osx lion. It seems to be up and running:

Kristoffers-MacBook-Pro:django-test kristoffernolgren$ python manage.py runserver
Validating models...

0 errors found
Django version 1.4.1, using settings 'mysite.settings'
Development server is running at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
^CKristoffers-MacBook-Pro:django-test kristoffernolgren$ 

but when I visit the URL http://127.0.0.1:8000/ I get a "connection failed" error.

I didn't understand that when cou press Ctrl+C you turn of the development server. Just don't press ctrl+c. Hopefully This will help someone else :)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM