Tuesday, October 21, 2014

Re: djangoproject.com tutorial part 3

Im not sure I understand so maybe I am stating the obvious here... but "python manage.py runserver" shouldnt call the page. It should start your dev server. Then you call http://localhost:8000/polls as Daniel mentioned when the server is started. 

On Tuesday, 21 October 2014 18:14:34 UTC+1, Tri Vo wrote:
Ok, I forgot say this. I'm using a different server to run Django. It works on the server that I am using. 

On Tue, Oct 21, 2014 at 3:42 AM, Daniel Roseman <dan...@roseman.org.uk> wrote:
On Tuesday, 21 October 2014 00:01:56 UTC+1, Tri Vo wrote:
I am calling the page with "python manage.py runserver 0.0.0.0:8000" When I load up the page before adding the views and urls files, I see the polls and everything that I have set up with the codes from the previous pages of the tutorial. After adding the  views and urls files, the page looks the same like, even though the direction tells me that I should see the "Hello world" message that I put in the views file. I ran another directory with different way to put up the views like in this tutorial (http://www.djangobook.com/en/2.0/chapter03.html) and I got the views working by itself, but using the djangoproject tutorial, I do not see the message.

You didn't read closely enough:

"You have now wired an index view into the URLconf. Go to **http://localhost:8000/polls/** in your browser, and you should see the text "Hello, world. You're at the polls index.", which you defined in the index view."

Note the address.
--
DR.

--
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/OuG_9XUozlQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/ee6f6ec9-f8e6-4101-8aa4-3e388a9d8ffa%40googlegroups.com.

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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/3e77b7bd-a8e0-4ef0-addb-d0fcd3afd06c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment