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.
On Thursday, November 29, 2018 at 5:59:05 PM UTC-8, jlgimeno71 wrote:
On Thursday, November 29, 2018 at 5:59:05 PM UTC-8, jlgimeno71 wrote:
On Thu, Nov 29, 2018, 4:27 PM Scott Reed <akapro...@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 16348At 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 .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/03ac5c5f-af11-4930-ba74-4af3336a317a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment