have you are opening  127.0.0.1:8000 ?

Many thanks,

Serge


+380 636150445
skype: skhohlov

On Sat, Oct 8, 2016 at 6:09 AM, 居飞 <jufei9...@gmail.com> wrote:

> Hi:
>    I installed the django 1.10.2 on Centos, after I started a project and
> run the "python manage.py migrate", then run "python manage.py runserver",
> it shows:
>
> [root@pet1jenkins testsite1]# python manage.py runserver
> Performing system checks...
>
> System check identified no issues (0 silenced).
> October 08, 2016 - 10:59:19
> Django version 1.10.2, using settings 'testsite1.settings'
> Starting development server at http://127.0.0.1:8000/
> Quit the server with CONTROL-C.
>
> Everything seems OK but my browser could not access the webpage.
> I use netstat to check and found the 8000 is listen;
> Then I use telnet 127.0.0.1 80 ; connect is OK, I enter GET /, no
> response; then I enter return key, it shows:
>
> [root@pet1jenkins ~]# telnet 10.69.2.134 8000
> Trying 10.69.2.134...
> Connected to 10.69.2.134.
> Escape character is '^]'.
> GET /
>
>
> <!DOCTYPE html>
> <html lang="en"><head>
>   <meta http-equiv="content-type" content="text/html; charset=utf-8">
>   <meta name="robots" content="NONE,NOARCHIVE"><title>Welcome to
> Django</title>
>   <style type="text/css">
>     html * { padding:0; margin:0; }
>     body * { padding:10px 20px; }
>     body * * { padding:0; }
>     body { font:small sans-serif; }
>     body>div { border-bottom:1px solid #ddd; }
>     h1 { font-weight:normal; }
>     h2 { margin-bottom:.8em; }
>     h2 span { font-size:80%; color:#666; font-weight:normal; }
>     h3 { margin:1em 0 .5em 0; }
>     h4 { margin:0 0 .5em 0; font-weight: normal; }
>     table { border:1px solid #ccc; border-collapse: collapse; width:100%;
> background:white; }
>     tbody td, tbody th { vertical-align:top; padding:2px 3px; }
>     thead th {
>       padding:1px 6px 1px 3px; background:#fefefe; text-align:left;
>       font-weight:normal; font-size:11px; border:1px solid #ddd;
>     }
>     tbody th { width:12em; text-align:right; color:#666;
> padding-right:.5em; }
>     #summary { background: #e0ebff; }
>     #summary h2 { font-weight: normal; color: #666; }
>     #explanation { background:#eee; }
>     #instructions { background:#f6f6f6; }
>     #summary table { border:none; background:transparent; }
>   </style>
> </head>
>
> <body>
> <div id="summary">
>   <h1>It worked!</h1>
>   <h2>Congratulations on your first Django-powered page.</h2>
> </div>
>
> <div id="instructions">
>   <p>
>     Of course, you haven't actually done any work yet. Next, start your
> first app by running <code>python manage.py startapp [app_label]</code>.
>   </p>
> </div>
>
> <div id="explanation">
>   <p>
>     You're seeing this message because you have <code>DEBUG = True</code>
> in your Django settings file and you haven't configured any URLs. Get to
> work!
>   </p>
> </div>
> </body></html>
>
> Notice: it seems need a more RETURN key, because I tested the nginx server
> use telnet, when I input GET /, it reply the webpage immediately!
>
> So anyone who can help me?
>
> Thanks.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/cf21ecd0-8406-496e-94bb-d8e03c3d465e%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/cf21ecd0-8406-496e-94bb-d8e03c3d465e%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CADTRxJMhJ6oDL-%2BxJRY_BXwiVBZ%2BCzPAQkH%3D265PO7XMsYrY%3Dg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to