Correction - The "import include" was mentioned in the tutorial, I missed 
it.

I still need help!

On Thursday, 23 November 2017 09:33:35 UTC-5, Carl Brubaker wrote:
>
> I am brand new to Python and Django. I am trying to learn both 
> simultaneously. I wanted to run the Django tutorial to make sure it works 
> on my computer, iMac running 10.13.1. 
>
> I know I have coding issues, and managed to figure out some of the 
> problems that I had, but the polls tutorial does not work.
>
> Things I have figure out:
>
>    Don't type "python", use "python3".
>        - Since 2.0 only works in Python 3, shouldn't the tutorial be 
> updated to that? Or is that just because I have a Mac that comes 
> preinstalled with Python 2?
>
>    Add "from django.conf.urls import include" to mysite/urls.py
>         - Again, not mentioned in the tutorial.
>
> I no longer have errors in my terminal, but the "polls" website is not 
> found in my browser.
>
>    Error in the browser:
>      
>      Page not found (404) 
>        Request Method: GET 
>        Request URL: http://localhost:8000/polls 
>
>       Using the URLconf defined in mysite.urls, Django tried these URL 
> patterns, in this order: 
>
>    1.  polls/ 
>    2. admin/ 
>
>       The current path, polls, didn't match any of these. 
>
>    Error in the terminal
>
>       python3 manage.py runserver
>       Performing system checks...
>
>       System check identified no issues (0 silenced).
>
>       You have 14 unapplied migration(s). Your project may not work 
> properly until you apply the migrations for app(s): admin, auth, 
> contenttypes, sessions.
>       Run 'python manage.py migrate' to apply them.
>
>       November 23, 2017 - 10:13:03
>       Django version 2.0rc1, using settings 'mysite.settings'
>       Starting development server at http://127.0.0.1:8000/
>       Quit the server with CONTROL-C.
>       Not Found: /polls
>       [23/Nov/2017 10:13:09] "GET /polls HTTP/1.1" 404 2060
>
> I'm trying to look through issues from previous versions to see if I get 
> lucky. Any help would be greatly appreciated.
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
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/de0da034-be61-4cc9-beab-fcce74d7d1cb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to