Discussion:
Tutorial - runserver freezes command prompt
Scott Reed
2018-11-29 22:49:35 UTC
Permalink
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+***@googlegroups.com.
To post to this group, send email to django-***@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.
Jorge Gimeno
2018-11-30 01:59:35 UTC
Permalink
Post by Scott Reed
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
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
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
<https://groups.google.com/d/msgid/django-users/b497916f-70f3-4023-b110-a8da95e6c975%40googlegroups.com?utm_medium=email&utm_source=footer>
.
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+***@googlegroups.com.
To post to this group, send email to django-***@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.
Scott Reed
2018-11-30 05:40:05 UTC
Permalink
Thanks for you response Jorge! I see, that's just to check that it worked,
and I'm supposed to quit the server to keep using the command prompt.
Another question: I can't figure out the next step - opening the views.py
file in the command prompt.
I've tried navigating to the directory and entering the filename, entering
the file's full path, doing both of those with 'python' and 'python.exe'
before them, adding python's path (I think) to my environmental variables
path in Windows.
I'm stuck.
Post by Jorge Gimeno
Post by Scott Reed
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
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
<javascript:>.
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
<https://groups.google.com/d/msgid/django-users/b497916f-70f3-4023-b110-a8da95e6c975%40googlegroups.com?utm_medium=email&utm_source=footer>
.
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+***@googlegroups.com.
To post to this group, send email to django-***@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/03ac5c5f-af11-4930-ba74-4af3336a317a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Jorge Gimeno
2018-11-30 05:54:12 UTC
Permalink
Post by Scott Reed
Thanks for you response Jorge! I see, that's just to check that it
worked, and I'm supposed to quit the server to keep using the command
prompt.
Another question: I can't figure out the next step - opening the views.py
file in the command prompt.
I've tried navigating to the directory and entering the filename, entering
the file's full path, doing both of those with 'python' and 'python.exe'
before them, adding python's path (I think) to my environmental variables
path in Windows.
I'm stuck.
Scott,
To edit files you need a text editor of some sort. Notepad or Word are not
very useful. A good one I have seen people use is Mu, located at
https://codewith.mu. Notepad++ is another good option for Windows.

-Jorge
--
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+***@googlegroups.com.
To post to this group, send email to django-***@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-fCrCqkTfB4hx5O7iQvCxev9V51USKE-Q0R9mUcDBdow%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Scott Reed
2018-11-30 06:04:24 UTC
Permalink
Thanks again Jorge! I'm such a noob :/ But this is a great learning
experience.
Post by Jorge Gimeno
Post by Scott Reed
Thanks for you response Jorge! I see, that's just to check that it
worked, and I'm supposed to quit the server to keep using the command
prompt.
Another question: I can't figure out the next step - opening the views.py
file in the command prompt.
I've tried navigating to the directory and entering the filename,
entering the file's full path, doing both of those with 'python' and
'python.exe' before them, adding python's path (I think) to my
environmental variables path in Windows.
I'm stuck.
Scott,
To edit files you need a text editor of some sort. Notepad or Word are not
very useful. A good one I have seen people use is Mu, located at
https://codewith.mu. Notepad++ is another good option for Windows.
-Jorge
--
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+***@googlegroups.com.
To post to this group, send email to django-***@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/c6623559-baf7-4313-bf10-be9106850f74%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Jorge Gimeno
2018-11-30 06:12:24 UTC
Permalink
We all were there once. Keep moving forward!

-Jorge
Post by Scott Reed
Thanks again Jorge! I'm such a noob :/ But this is a great learning
experience.
Post by Jorge Gimeno
Post by Scott Reed
Thanks for you response Jorge! I see, that's just to check that it
worked, and I'm supposed to quit the server to keep using the command
prompt.
Another question: I can't figure out the next step - opening the
views.py file in the command prompt.
I've tried navigating to the directory and entering the filename,
entering the file's full path, doing both of those with 'python' and
'python.exe' before them, adding python's path (I think) to my
environmental variables path in Windows.
I'm stuck.
Scott,
To edit files you need a text editor of some sort. Notepad or Word are
not very useful. A good one I have seen people use is Mu, located at
https://codewith.mu. Notepad++ is another good option for Windows.
-Jorge
--
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
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/c6623559-baf7-4313-bf10-be9106850f74%40googlegroups.com
<https://groups.google.com/d/msgid/django-users/c6623559-baf7-4313-bf10-be9106850f74%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+***@googlegroups.com.
To post to this group, send email to django-***@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_MDGeYPjLw9yMiOUJBc%3D84Hy2KxwiG2Q_kdzbSeibuSw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Jani Tiainen
2018-11-30 06:20:42 UTC
Permalink
You might want to try Visual Studio Code as well. It has some integration
with Python (for example code completion and flake8 and pylint checks on
the fly).
Post by Scott Reed
Thanks again Jorge! I'm such a noob :/ But this is a great learning
experience.
Post by Jorge Gimeno
Post by Scott Reed
Thanks for you response Jorge! I see, that's just to check that it
worked, and I'm supposed to quit the server to keep using the command
prompt.
Another question: I can't figure out the next step - opening the
views.py file in the command prompt.
I've tried navigating to the directory and entering the filename,
entering the file's full path, doing both of those with 'python' and
'python.exe' before them, adding python's path (I think) to my
environmental variables path in Windows.
I'm stuck.
Scott,
To edit files you need a text editor of some sort. Notepad or Word are
not very useful. A good one I have seen people use is Mu, located at
https://codewith.mu. Notepad++ is another good option for Windows.
-Jorge
--
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
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/c6623559-baf7-4313-bf10-be9106850f74%40googlegroups.com
<https://groups.google.com/d/msgid/django-users/c6623559-baf7-4313-bf10-be9106850f74%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
Jani Tiainen

- Well planned is half done, and a half done has been sufficient before...
--
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+***@googlegroups.com.
To post to this group, send email to django-***@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/CAHn91oeD_RRKbieb4t8cuQdx%3Dw24k8p%2BjwDK19%2BZWt9nK4pFfw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Loading...