Thursday, November 29, 2018

Re: Tutorial - runserver freezes command prompt



On Thu, Nov 29, 2018, 4:27 PM Scott Reed <akaprometheus@gmail.com wrote:
Hi, I'm starting the Django polls tutorial.
I've followed all the steps so far: installed Python and Django, set up the virtual environment, etc.
I'm at the point where you start the Django development server by running 'py manage.py runserver' in the mysite directory.
When I execute this command in the command prompt window, it runs and brings up the message shown in the tutorial, with a couple variations on my computer:

Performing system checks...    System check identified no issues (0 silenced).    You have unapplied migrations; your app may not work properly until they are applied.  Run 'python manage.py migrate' to apply them.    November 28, 2018 - 15:50:53  Django version 2.1, using settings 'mysite.settings'  Starting development server at http://127.0.0.1:8000/  Quit the server with CONTROL-C.

Below this is a time/date stamp followed by "GET / HTTP/1.1" 200 16348

At this point, my command prompt window is frozen.  There's a blinking cursor (with no path to its left, like usual), and it doesn't accept any input.  The only thing that I can do is press CTRL-C to quit the server, which takes me back to the directory, where I can enter commands, but then I've quit the server.

Any ideas?

As a side note - whatever I type in while the server appears frozen will appear once I quit with CTRL-C.
Also, after quitting the server I tried to execute the 'py manage.py startapp polls' to create the polls directory.  It worked, and there is now a polls directory under the mysite directory, but I haven't been able to open views.py from the command line to complete the next step in the tutorial.

--
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+unsubscribe@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/b497916f-70f3-4023-b110-a8da95e6c975%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Scott,

Once you cursor disappears, your server is running and listening for requests. Open a browser and point it at http://127.0.0.1:8000 and see what happens!

-Jorge L. Gimeno

--
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+unsubscribe@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/CANfN%3DK-rBW%2B%3D5jZvt%2Bf6-xOG%2BO2PKJqMRO%3D9aXHLoNeZH%2BFkZg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment