Re: Error running Django tutorial

2020-07-20 Thread Lithium
In in mysite/urls.py
check the "/" after "polls" in this line: 
path('polls/', include('polls.urls'))


On Friday, June 12, 2020 at 4:52:52 PM UTC+4:30 temitope iyanoye wrote:

> I’m using Django 3.0 and I have this same issue following the official 
> Django tutorial, has anyone been able to fix it? Please I need help, thanks

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/eaae3d91-71bf-4d4d-a15f-674ef3e290b3n%40googlegroups.com.


Re: Error running Django tutorial

2020-06-12 Thread temitope iyanoye
I’m using Django 3.0 and I have this same issue following the official Django 
tutorial, has anyone been able to fix it? Please I need help, thanks

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/1d8325c4-5bdb-47c3-ba69-f6500382983fo%40googlegroups.com.


Re: Error running Django tutorial

2020-03-25 Thread Thomas Pittman
Kyle D,

This is why I stay in this thread. Thanks for the heads up. I remember
being so lost when I tried to start teaching myself Django. What's the
class for?

Regards


On Tue, Mar 24, 2020 at 10:46 PM kyle D  wrote:

> I'm using Django for a class, and came across this thread and thought I'd
> post what fixed it for me in case someone else has the same issue I did.
>
> Makes sure your mysite/urls.py is the one that has the urlpatterns[] with
> the path to your polls and not the mysite/polls/urls.py.
>
> This one:
> urlpatterns = [
> path('polls/', include('polls.urls')),
> path('admin/', admin.site.urls),
> ]
>
>
> Not this one:
> app_name = 'polls'
> urlpatterns = [
> # ex: /polls/
> path('', views.index, name='index'),
>
> --
> 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/aZQoPBeHDPs/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/61ca2cd8-70cb-4a5b-8ae7-5657ef413209%40googlegroups.com
> 
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CANQVT%2BY-WhoRQyM7hD9d1WK-XjC12SQMuD2RajeWHWZWqBof2g%40mail.gmail.com.


Re: Error running Django tutorial

2020-03-24 Thread kyle D
I'm using Django for a class, and came across this thread and thought I'd 
post what fixed it for me in case someone else has the same issue I did.

Makes sure your mysite/urls.py is the one that has the urlpatterns[] with 
the path to your polls and not the mysite/polls/urls.py.

This one:
urlpatterns = [
path('polls/', include('polls.urls')),
path('admin/', admin.site.urls),
]

 
Not this one:
app_name = 'polls'
urlpatterns = [
# ex: /polls/
path('', views.index, name='index'),

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/61ca2cd8-70cb-4a5b-8ae7-5657ef413209%40googlegroups.com.


Re: Error running Django tutorial

2019-07-24 Thread Will Brown
Thank you. I think this is the issue for many of us...

mysite/


On Friday, January 4, 2019 at 4:38:47 AM UTC-8, Nitin Tiwari wrote:
>
> I just wanna, explain my experience, in the official tutorial 
> https://docs.djangoproject.com/en/2.1/intro/tutorial01/  
>  when they tell 
> you to edit urls file of mysite directorythey didnt mention which one. And 
> in the beginning of tutorial our project name is also mysite, so i thought 
> that I have to create new urls.py out side. but you have to to use inbuilld 
> one. 
>
> On Sunday, 28 February 2016 01:20:39 UTC+5:30, Mike Kipling wrote:
>>
>> I am working through the Django tutorial *Writing your first Django app, 
>> part 1.*
>> I am using Windows 10, python 3.5.1 and Django 1.9.2 .
>>  
>> In the *Write your first view* section:  
>> after writing the polls/views.py and polls/urls.py files, 
>> and modifying the manage/urls.py file, 
>> and starting the server,
>>  
>> When I go to http://localhost:8000/polls/ in the browser I get the 
>> following error:
>>
>> 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. ^admin/
>>
>> The current URL, polls/, didn't match any of these.
>>
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/4ff98db5-025f-461b-9f75-85f8b8f18ebe%40googlegroups.com.


Re: Error running Django tutorial

2019-01-04 Thread Nitin Tiwari
I just wanna, explain my experience, in the official tutorial 
https://docs.djangoproject.com/en/2.1/intro/tutorial01/  
 when they tell 
you to edit urls file of mysite directorythey didnt mention which one. And 
in the beginning of tutorial our project name is also mysite, so i thought 
that I have to create new urls.py out side. but you have to to use inbuilld 
one. 

On Sunday, 28 February 2016 01:20:39 UTC+5:30, Mike Kipling wrote:
>
> I am working through the Django tutorial *Writing your first Django app, 
> part 1.*
> I am using Windows 10, python 3.5.1 and Django 1.9.2 .
>  
> In the *Write your first view* section:  
> after writing the polls/views.py and polls/urls.py files, 
> and modifying the manage/urls.py file, 
> and starting the server,
>  
> When I go to http://localhost:8000/polls/ in the browser I get the 
> following error:
>
> 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. ^admin/
>
> The current URL, polls/, didn't match any of these.
>

-- 
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+unsubscr...@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/e925eeb3-65e4-47c9-96b4-f9a29594161a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error running Django tutorial

2018-09-21 Thread Asong nkemzi
I figured it out thanks Guys! like every one else I just added my app
string to the application VARIABLE in *mysite/settings.py * works fabulously

On Fri, Sep 21, 2018 at 7:43 AM John Meyer 
wrote:

> I have been testing this tutorial frequently over the last few days  (with
> success) and am using an empty string ( ‘’ ) for the route (first argument
> to path) in the app’s urls.py, rather than the ‘raw’ string value I see in
> the earlier posts here.
>
> --
> 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+unsubscr...@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/af3851c0-3442-479e-9f97-e3e7b8f883a4%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+unsubscr...@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/CALSgtBw1tw8u42wdb0eiRFUsVQt1AE6bAPhBtjXRdnODr-TwMg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error running Django tutorial

2018-09-21 Thread John Meyer
I have been testing this tutorial frequently over the last few days  (with 
success) and am using an empty string ( ‘’ ) for the route (first argument to 
path) in the app’s urls.py, rather than the ‘raw’ string value I see in the 
earlier posts here.

-- 
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+unsubscr...@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/af3851c0-3442-479e-9f97-e3e7b8f883a4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error running Django tutorial

2018-09-20 Thread Joel
Show the urls.py after adding everything. Note that there must be two
urls.py. One in the project folder, another in the app folder

On Fri 21 Sep, 2018, 12:18 AM Asong nkemzi,  wrote:

> Hello, Ruth did you ever solve this problem? I am experiencing exactly the
> same issue
>
> On Thursday, March 17, 2016 at 4:07:11 PM UTC-4, Ruth wrote:
>>
>> I am getting the very same problem, despite adding include to my
>> mysite\urls.py file.
>> I am using Python 2.7.6, Django 1.9.4 and Ubuntu 14.04.3 LTS
>> Could it be a python 2.7 problem?
>> Thanks,
>> Ruth
>>
>> On Saturday, February 27, 2016 at 11:50:39 AM UTC-8, Mike Kipling wrote:
>>>
>>> I am working through the Django tutorial *Writing your first Django
>>> app, part 1.*
>>> I am using Windows 10, python 3.5.1 and Django 1.9.2 .
>>>
>>> In the *Write your first view* section:
>>> after writing the polls/views.py and polls/urls.py files,
>>> and modifying the manage/urls.py file,
>>> and starting the server,
>>>
>>> When I go to http://localhost:8000/polls/ in the browser I get the
>>> following error:
>>>
>>> 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. ^admin/
>>>
>>> The current URL, polls/, didn't match any of these.
>>>
>> --
> 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+unsubscr...@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/778da3c3-92a0-4560-b2e2-7b7d5539ad85%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+unsubscr...@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/CAA%3Diw_8tX_Vr5%3DN95%3DKSGUr6uyzxMB5Dta-FjnqSjg%3DywkO8QA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error running Django tutorial

2018-09-20 Thread Asong nkemzi
Hello, Ruth did you ever solve this problem? I am experiencing exactly the 
same issue

On Thursday, March 17, 2016 at 4:07:11 PM UTC-4, Ruth wrote:
>
> I am getting the very same problem, despite adding include to my 
> mysite\urls.py file.
> I am using Python 2.7.6, Django 1.9.4 and Ubuntu 14.04.3 LTS
> Could it be a python 2.7 problem?
> Thanks,
> Ruth
>
> On Saturday, February 27, 2016 at 11:50:39 AM UTC-8, Mike Kipling wrote:
>>
>> I am working through the Django tutorial *Writing your first Django app, 
>> part 1.*
>> I am using Windows 10, python 3.5.1 and Django 1.9.2 .
>>  
>> In the *Write your first view* section:  
>> after writing the polls/views.py and polls/urls.py files, 
>> and modifying the manage/urls.py file, 
>> and starting the server,
>>  
>> When I go to http://localhost:8000/polls/ in the browser I get the 
>> following error:
>>
>> 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. ^admin/
>>
>> The current URL, polls/, didn't match any of these.
>>
>

-- 
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+unsubscr...@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/778da3c3-92a0-4560-b2e2-7b7d5539ad85%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error running Django tutorial

2018-06-16 Thread Mayank Bhatia
hello guys,

I am facing the same error while creating the views.

On Sunday, February 28, 2016 at 1:20:39 AM UTC+5:30, Mike Kipling wrote:
>
> I am working through the Django tutorial *Writing your first Django app, 
> part 1.*
> I am using Windows 10, python 3.5.1 and Django 1.9.2 .
>  
> In the *Write your first view* section:  
> after writing the polls/views.py and polls/urls.py files, 
> and modifying the manage/urls.py file, 
> and starting the server,
>  
> When I go to http://localhost:8000/polls/ in the browser I get the 
> following error:
>
> 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. ^admin/
>
>  

> The current URL, polls/, didn't match any of these.
>

-- 
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+unsubscr...@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/181281c9-ecb5-4e84-9627-ce0be18599fd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error running Django tutorial

2018-05-04 Thread Elorm Koku
You don't have anything like music/index in your urls.py file yet you
are putting it in your request.

On Fri, 4 May 2018, 21:48 Kamal Kumar Bharadwaj, <
bharadwaj.kamal3...@gmail.com> wrote:

> Hi Guys,
>
> I am facing trouble while running the tutorial for Django. I have attached
> the error details and the complete code. I am using python 3.x, django
> 2.0.x with anaconda distribution on python. Please help me asap.
>
>
> Thanks in advance!
>
>
> Regards,
>
> Kamal Kumar Bharadwaj
>
>
>
> On Thursday, 16 March 2017 21:22:12 UTC+5:30, Thomas Pittman wrote:
>>
>> I'm not sure why, but it stopped the error and send to import it. I'm
>> using 3.6?
>>
>> On Mar 16, 2017 11:45 AM, "Vijay Khemlani"  wrote:
>>
>>> Why is there a backslash in
>>>
>>> from django.conf.urls import polls\
>>>
>>> ?
>>>
>>> On 3/16/17, Camilo Torres  wrote:
>>> > Hi.
>>> >
>>> > You may have a strange, non-visible character in your file just before
>>> the
>>> > line giving error.
>>> >
>>> > --
>>> > 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/f9e098eb-2362-4cc1-bc41-0b5a03f64172%40googlegroups.com
>>> .
>>> > For more options, visit https://groups.google.com/d/optout.
>>> >
>>>
>>> --
>>> 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/aZQoPBeHDPs/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 https://groups.google.com/group/django-users.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CALn3ei2hsX-YPbrf-47E5vfyR-So88UVGHGWGt06br1Jaiqf%3DA%40mail.gmail.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+unsubscr...@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/de3b1465-be3b-4144-9bf3-62543a3a91fc%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+unsubscr...@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/CAG%2BabP9sa1KjsAukjVj66epFWtga9BtCBooEAWgbuZVHJBcWRw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error running Django tutorial

2017-03-16 Thread Thomas Pittman
I'm not sure why, but it stopped the error and send to import it. I'm using
3.6?

On Mar 16, 2017 11:45 AM, "Vijay Khemlani"  wrote:

> Why is there a backslash in
>
> from django.conf.urls import polls\
>
> ?
>
> On 3/16/17, Camilo Torres  wrote:
> > Hi.
> >
> > You may have a strange, non-visible character in your file just before
> the
> > line giving error.
> >
> > --
> > 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+unsubscr...@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/f9e098eb-
> 2362-4cc1-bc41-0b5a03f64172%40googlegroups.com.
> > For more options, visit https://groups.google.com/d/optout.
> >
>
> --
> 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/aZQoPBeHDPs/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> django-users+unsubscr...@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/CALn3ei2hsX-YPbrf-47E5vfyR-So88UVGHGWGt06br1Jaiqf%3DA%
> 40mail.gmail.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+unsubscr...@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/CANQVT%2BaN%3DgjUdzyr7npfmwbcoHqwFrXrhtk2SmT02NaU_MO2dA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error running Django tutorial

2017-03-16 Thread Vijay Khemlani
Why is there a backslash in

from django.conf.urls import polls\

?

On 3/16/17, Camilo Torres  wrote:
> Hi.
>
> You may have a strange, non-visible character in your file just before the
> line giving error.
>
> --
> 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+unsubscr...@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/f9e098eb-2362-4cc1-bc41-0b5a03f64172%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+unsubscr...@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/CALn3ei2hsX-YPbrf-47E5vfyR-So88UVGHGWGt06br1Jaiqf%3DA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error running Django tutorial

2017-03-16 Thread Camilo Torres
Hi.

You may have a strange, non-visible character in your file just before the line 
giving error.

-- 
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+unsubscr...@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/f9e098eb-2362-4cc1-bc41-0b5a03f64172%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error running Django tutorial

2017-03-15 Thread Thomas Pittman
from django.conf.urls import url
from django.conf.urls import include
from django.conf.urls import polls\
from django.contrib import admin

urlpatterns = [
url(r'^polls/', include('polls.urls')),
url(r'^admin/', include('admin.site.urls')),
]

Here is a copy of the the mysite.py file. I'm not sure how, but the error 
stopped after I imported imclude and polls this way.


On Tuesday, March 7, 2017 at 6:55:47 AM UTC-5, Vanja Falck wrote:
>
> Hi,
> I am also facing the same problems with the djangoproject tutorial - I 
> have changed the settings.py file to add the polls app, but it did not 
> solve the issue:
> When runserver: I get the admin page, but not the polls page. Get a 
> similar 404 error page as Kipling, but with the ˆpolls/ url in the list.
>
> Running in virtualenv - with python 3.5.2 and django 10.1.6 on Ubuntu 
> 16.04. Any idea of what is wrong?
>
> Here is my code:
>
> # Your first view: opprettet polls/urls.py
>
> from django.conf.urls import url
>
> from . import views
>
> urlpatterns = [
> url(r'ˆ$', views.index, name='index'),
> ]
>
> # Your first view polls/views.py
>
> from django.http import HttpResponse
>
> def index(request):
> return HttpResponse("Hoppla, polls index her..")
>
> # Site/urls.py
>
> from django.conf.urls import include, url
> from django.contrib import admin
>
> urlpatterns = [
> url(r'ˆpolls/', include('polls.urls')),
> url(r'^admin/', admin.site.urls),
> ]
> # Site/settings.py
> # Application definition
>
> INSTALLED_APPS = [
> 'django.contrib.admin',
> 'django.contrib.auth',
> 'django.contrib.contenttypes',
> 'django.contrib.sessions',
> 'django.contrib.messages',
> 'django.contrib.staticfiles',
> 'polls.apps.PollsConfig',
>   
>
>
>
>
> torsdag 17. mars 2016 21.56.04 UTC+1 skrev Bruno Barbosa følgende:
>>
>> Ruth,
>>
>> Show me the code!
>>
>> How is your urls.py? and the views.py?
>>
>> paste your code in https://gist.github.com/ and reply this email.
>>
>> --
>> Bruno Barbosa
>> Web Developer
>> *brunobarbosa.com.br *
>>
>> On Thu, Mar 17, 2016 at 3:50 PM, Ruth  
>> wrote:
>>
>>> Hi,
>>> I am getting the same problem, despite having include in my 
>>> mysite\urls.py file.
>>> I am using Python 2.7.6, Django 1.9.4 and Ubuntu 14.04.3 LTS.
>>> Could it by a Python 2.7 problem?
>>> Thanks,
>>> Ruth
>>>
>>> On Wednesday, March 2, 2016 at 12:19:16 PM UTC-8, jorr...@gmail.com 
>>> wrote:

 Glad you got it solved!!


 On Monday, February 29, 2016 at 10:10:58 PM UTC+1, Mike Kipling wrote:
>
> I found the problem.
>
> When the mysite\urls.py file is created, it has this line already in 
> it.
>
> from django.conf.urls import url
>
> The tutorial asks you to add the following lines to the file.
>
> from django.conf.urls import include, url
> from django.contrib import admin
>
> urlpatterns = [
> url(r'^polls/', include('polls.urls')),
> url(r'^admin/', admin.site.urls),
> ]
>
> I must did not notice that the 'include' was different, and so I had 
> not placed it into the file.  I changed the file to add the 'include' and 
> everything worked.
>
> Thank you for the help.
>
 -- 
>>> 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/c14e04f8-be34-4569-ae42-48e8d4135a2c%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+unsubscr...@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/ba72910a-d249-4e15-bd5d-117f696b22ba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error running Django tutorial

2017-03-15 Thread Thomas Pittman


Here is the error I keep getting. I've started this tutorial on python 3.6. 
I ran into the problems people had before. Somehow I've fixed them before I 
got here. I can't seem to reconcile this part. Any suggestions?




On Saturday, February 27, 2016 at 2:50:39 PM UTC-5, Mike Kipling wrote:
>
> I am working through the Django tutorial *Writing your first Django app, 
> part 1.*
> I am using Windows 10, python 3.5.1 and Django 1.9.2 .
>  
> In the *Write your first view* section:  
> after writing the polls/views.py and polls/urls.py files, 
> and modifying the manage/urls.py file, 
> and starting the server,
>  
> When I go to http://localhost:8000/polls/ in the browser I get the 
> following error:
>
> 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. ^admin/
>
> The current URL, polls/, didn't match any of these.
>

-- 
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+unsubscr...@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/c1539178-0afe-400c-b6df-df4e0d43154f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error running Django tutorial

2017-03-08 Thread Daniel Bess
Hello!

Daniel

> On Mar 8, 2017, at 12:51 AM, Melvyn Sopacua  wrote:
> 
> Hi,
>  
> On Tuesday 07 March 2017 01:24:02 Vanja Falck wrote:
>  
>  
> > urlpatterns = [
> > url(r'ˆpolls/', include('polls.urls')),
> > url(r'^admin/', admin.site.urls),
> > ]
>  
> Easy to see this way. You didn't type a caret but some unicode sign that 
> looks like a caret.
> -- 
> Melvyn Sopacua
> 
> -- 
> 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+unsubscr...@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/2571142.lux90pYzcz%40devstation
>  
> .
> 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+unsubscr...@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/26363D1B-F3E4-4154-9AEA-4D5373930F4D%40endocrypt.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error running Django tutorial

2017-03-08 Thread Melvyn Sopacua
Hi,

On Tuesday 07 March 2017 01:24:02 Vanja Falck wrote:


> urlpatterns = [
> url(r'ˆpolls/', include('polls.urls')),
> url(r'^admin/', admin.site.urls),
> ]

Easy to see this way. You didn't type a caret but some unicode sign that 
looks like a caret.
-- 
Melvyn Sopacua

-- 
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+unsubscr...@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/2571142.lux90pYzcz%40devstation.
For more options, visit https://groups.google.com/d/optout.


Re: Error running Django tutorial

2017-03-07 Thread Vanja Falck
Hi,
I am also facing the same problems with the djangoproject tutorial - I have 
changed the settings.py file to add the polls app, but it did not solve the 
issue:
When runserver: I get the admin page, but not the polls page. Get a similar 
404 error page as Kipling, but with the ˆpolls/ url in the list.

Running in virtualenv - with python 3.5.2 and django 10.1.6 on Ubuntu 
16.04. Any idea of what is wrong?

Here is my code:

# Your first view: opprettet polls/urls.py

from django.conf.urls import url

from . import views

urlpatterns = [
url(r'ˆ$', views.index, name='index'),
]

# Your first view polls/views.py

from django.http import HttpResponse

def index(request):
return HttpResponse("Hoppla, polls index her..")

# Site/urls.py

from django.conf.urls import include, url
from django.contrib import admin

urlpatterns = [
url(r'ˆpolls/', include('polls.urls')),
url(r'^admin/', admin.site.urls),
]
# Site/settings.py
# Application definition

INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'polls.apps.PollsConfig',
  




torsdag 17. mars 2016 21.56.04 UTC+1 skrev Bruno Barbosa følgende:
>
> Ruth,
>
> Show me the code!
>
> How is your urls.py? and the views.py?
>
> paste your code in https://gist.github.com/ and reply this email.
>
> --
> Bruno Barbosa
> Web Developer
> *brunobarbosa.com.br *
>
> On Thu, Mar 17, 2016 at 3:50 PM, Ruth  > wrote:
>
>> Hi,
>> I am getting the same problem, despite having include in my 
>> mysite\urls.py file.
>> I am using Python 2.7.6, Django 1.9.4 and Ubuntu 14.04.3 LTS.
>> Could it by a Python 2.7 problem?
>> Thanks,
>> Ruth
>>
>> On Wednesday, March 2, 2016 at 12:19:16 PM UTC-8, jorr...@gmail.com 
>> wrote:
>>>
>>> Glad you got it solved!!
>>>
>>>
>>> On Monday, February 29, 2016 at 10:10:58 PM UTC+1, Mike Kipling wrote:

 I found the problem.

 When the mysite\urls.py file is created, it has this line already in it.

 from django.conf.urls import url

 The tutorial asks you to add the following lines to the file.

 from django.conf.urls import include, url
 from django.contrib import admin

 urlpatterns = [
 url(r'^polls/', include('polls.urls')),
 url(r'^admin/', admin.site.urls),
 ]

 I must did not notice that the 'include' was different, and so I had 
 not placed it into the file.  I changed the file to add the 'include' and 
 everything worked.

 Thank you for the help.

>>> -- 
>> 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/c14e04f8-be34-4569-ae42-48e8d4135a2c%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+unsubscr...@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/d6671326-c2ca-4f9e-98c8-4fe3c9eee9ab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error running Django tutorial

2016-06-19 Thread David Bon
I was having the exact same problem.

In fact I was not modiying the right urls.py

On windows dirs i've got:
mysite/
 urls.py


In fact there the in your

-- 
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+unsubscr...@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/32a8c6ca-047a-4bf4-9e6a-e7e2121a2dc0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error running Django tutorial

2016-03-19 Thread Ruth
Hi,
I am getting the same problem, despite having include in my mysite\urls.py 
file.
I am using Python 2.7.6, Django 1.9.4 and Ubuntu 14.04.3 LTS.
Could it by a Python 2.7 problem?
Thanks,
Ruth

On Wednesday, March 2, 2016 at 12:19:16 PM UTC-8, jorr...@gmail.com wrote:
>
> Glad you got it solved!!
>
>
> On Monday, February 29, 2016 at 10:10:58 PM UTC+1, Mike Kipling wrote:
>>
>> I found the problem.
>>
>> When the mysite\urls.py file is created, it has this line already in it.
>>
>> from django.conf.urls import url
>>
>> The tutorial asks you to add the following lines to the file.
>>
>> from django.conf.urls import include, url
>> from django.contrib import admin
>>
>> urlpatterns = [
>> url(r'^polls/', include('polls.urls')),
>> url(r'^admin/', admin.site.urls),
>> ]
>>
>> I must did not notice that the 'include' was different, and so I had not 
>> placed it into the file.  I changed the file to add the 'include' and 
>> everything worked.
>>
>> Thank you for the help.
>>
>

-- 
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+unsubscr...@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/c14e04f8-be34-4569-ae42-48e8d4135a2c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error running Django tutorial

2016-03-19 Thread Bruno Barbosa
Ruth,

Show me the code!

How is your urls.py? and the views.py?

paste your code in https://gist.github.com/ and reply this email.

--
Bruno Barbosa
Web Developer
*brunobarbosa.com.br *

On Thu, Mar 17, 2016 at 3:50 PM, Ruth 
wrote:

> Hi,
> I am getting the same problem, despite having include in my mysite\urls.py
> file.
> I am using Python 2.7.6, Django 1.9.4 and Ubuntu 14.04.3 LTS.
> Could it by a Python 2.7 problem?
> Thanks,
> Ruth
>
> On Wednesday, March 2, 2016 at 12:19:16 PM UTC-8, jorr...@gmail.com wrote:
>>
>> Glad you got it solved!!
>>
>>
>> On Monday, February 29, 2016 at 10:10:58 PM UTC+1, Mike Kipling wrote:
>>>
>>> I found the problem.
>>>
>>> When the mysite\urls.py file is created, it has this line already in it.
>>>
>>> from django.conf.urls import url
>>>
>>> The tutorial asks you to add the following lines to the file.
>>>
>>> from django.conf.urls import include, url
>>> from django.contrib import admin
>>>
>>> urlpatterns = [
>>> url(r'^polls/', include('polls.urls')),
>>> url(r'^admin/', admin.site.urls),
>>> ]
>>>
>>> I must did not notice that the 'include' was different, and so I had
>>> not placed it into the file.  I changed the file to add the 'include' and
>>> everything worked.
>>>
>>> Thank you for the help.
>>>
>> --
> 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+unsubscr...@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/c14e04f8-be34-4569-ae42-48e8d4135a2c%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+unsubscr...@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/CAHxcCH4nmFpXeHmVhFJddeB9f0BACF636McCUu7DNr84mwz0Dg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error running Django tutorial

2016-03-19 Thread Ruth
I am getting the very same problem, despite adding include to my 
mysite\urls.py file.
I am using Python 2.7.6, Django 1.9.4 and Ubuntu 14.04.3 LTS
Could it be a python 2.7 problem?
Thanks,
Ruth

On Saturday, February 27, 2016 at 11:50:39 AM UTC-8, Mike Kipling wrote:
>
> I am working through the Django tutorial *Writing your first Django app, 
> part 1.*
> I am using Windows 10, python 3.5.1 and Django 1.9.2 .
>  
> In the *Write your first view* section:  
> after writing the polls/views.py and polls/urls.py files, 
> and modifying the manage/urls.py file, 
> and starting the server,
>  
> When I go to http://localhost:8000/polls/ in the browser I get the 
> following error:
>
> 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. ^admin/
>
> The current URL, polls/, didn't match any of these.
>

-- 
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+unsubscr...@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/68e5fd69-2581-4f56-b413-36bdf57aad2b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error running Django tutorial

2016-03-02 Thread jorrit787
Glad you got it solved!!


On Monday, February 29, 2016 at 10:10:58 PM UTC+1, Mike Kipling wrote:
>
> I found the problem.
>
> When the mysite\urls.py file is created, it has this line already in it.
>
> from django.conf.urls import url
>
> The tutorial asks you to add the following lines to the file.
>
> from django.conf.urls import include, url
> from django.contrib import admin
>
> urlpatterns = [
> url(r'^polls/', include('polls.urls')),
> url(r'^admin/', admin.site.urls),
> ]
>
> I must did not notice that the 'include' was different, and so I had not 
> placed it into the file.  I changed the file to add the 'include' and 
> everything worked.
>
> Thank you for the help.
>

-- 
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+unsubscr...@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/4ce4dd13-aa8b-4981-8a0a-727a16ac19ea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error running Django tutorial

2016-02-29 Thread Mike Kipling
I found the problem.

When the mysite\urls.py file is created, it has this line already in it.

from django.conf.urls import url

The tutorial asks you to add the following lines to the file.

from django.conf.urls import include, url
from django.contrib import admin

urlpatterns = [
url(r'^polls/', include('polls.urls')),
url(r'^admin/', admin.site.urls),
]

I must did not notice that the 'include' was different, and so I had not 
placed it into the file.  I changed the file to add the 'include' and 
everything worked.

Thank you for the help.

-- 
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+unsubscr...@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/baedaefb-d570-4154-9ed1-95fba413ff71%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error running Django tutorial

2016-02-29 Thread jorrit787
Can you attach your entire project's code in a ZIP file? I'm curious to 
test this myself...


On Monday, February 29, 2016 at 9:23:20 PM UTC+1, Mike Kipling wrote:
>
> I added polls to settings.py :
> INSTALLED_APPS = [
> 'django.contrib.admin',
> 'django.contrib.auth',
> 'django.contrib.contenttypes',
> 'django.contrib.sessions',
> 'django.contrib.messages',
> 'django.contrib.staticfiles',
> 'polls.apps.PollsConfig',
> ]
>
> Then I tried the migration:
> C:\Data\Django_Code\FirstApp\mysite>python manage.py migrate
> Operations to perform:
>   Apply all migrations: admin, sessions, contenttypes, auth
> Running migrations:
>   No migrations to apply.
>
> Then I started the server and tried going to the address, but got the same 
> results:
> C:\Data\Django_Code\FirstApp\mysite>python manage.py runserver
> Performing system checks...
>
> System check identified no issues (0 silenced).
> February 29, 2016 - 14:16:37
> Django version 1.9.2, using settings 'mysite.settings'
> Starting development server at http://127.0.0.1:8000/
> Quit the server with CTRL-BREAK.
> Not Found: /polls/
> [29/Feb/2016 14:16:46] "GET /polls/ HTTP/1.1" 404 1921
>
> I am working on a Windows OS, so I thought that perhaps changing the '/' 
> in the mysite\urls.py to '\\' might help, but it did not.
>
>

-- 
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+unsubscr...@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/bc913fc7-fe00-427f-87c7-cd5d52783551%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error running Django tutorial

2016-02-29 Thread Mike Kipling
I added polls to settings.py :
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'polls.apps.PollsConfig',
]

Then I tried the migration:
C:\Data\Django_Code\FirstApp\mysite>python manage.py migrate
Operations to perform:
  Apply all migrations: admin, sessions, contenttypes, auth
Running migrations:
  No migrations to apply.

Then I started the server and tried going to the address, but got the same 
results:
C:\Data\Django_Code\FirstApp\mysite>python manage.py runserver
Performing system checks...

System check identified no issues (0 silenced).
February 29, 2016 - 14:16:37
Django version 1.9.2, using settings 'mysite.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.
Not Found: /polls/
[29/Feb/2016 14:16:46] "GET /polls/ HTTP/1.1" 404 1921

I am working on a Windows OS, so I thought that perhaps changing the '/' in 
the mysite\urls.py to '\\' might help, but it did not.

-- 
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+unsubscr...@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/8cc60a51-0c12-4404-a03a-5f6a857f533e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error running Django tutorial

2016-02-29 Thread jorrit787
Well that's strange... The problem appears to be that your polls.urls file 
is not getting included in your project's URLConf (since the error message 
in your first post says that the only URL tried was *admin/* ). I'm not 
sure if adding the app to INSTALLED_APPS is necessary for an app's URLConf 
to be able to be included, but it's worth a try. In FirstApp/settings.py 
add 'polls' to the list of INSTALLED_APPS so that it looks something like 
this:

INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'polls.apps.PollsConfig',
]



Otherwise it does seem like it could be a file refresh problem.


On Monday, February 29, 2016 at 4:03:42 PM UTC+1, Mike Kipling wrote:
>
> Jorr,
>
> No, I did not modify the settings.py file, because the tutorial 
> specifically states: 
>
> Note
>
> Ignore the warning about unapplied database migrations for now; we’ll deal 
> with the database shortly.
>
>
> Here is a link to the tutorial: 
> https://docs.djangoproject.com/en/1.9/intro/tutorial01/
>
>
>
>
>
>

-- 
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+unsubscr...@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/d00ca4a7-856e-4045-bc99-7b03c037b46f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error running Django tutorial

2016-02-29 Thread Mike Kipling
Jorr,

No, I did not modify the settings.py file, because the tutorial 
specifically states: 

Note

Ignore the warning about unapplied database migrations for now; we’ll deal 
with the database shortly.


Here is a link to the tutorial: 
https://docs.djangoproject.com/en/1.9/intro/tutorial01/





-- 
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+unsubscr...@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/faaf04fa-6c50-4648-9ef6-d2f1b3c1e497%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error running Django tutorial

2016-02-29 Thread jorrit787
Did you add 'polls' to your list of INSTALLED_APPS in your settings.py? After 
that you should run > python manage.py migrate like the terminal is suggesting 
to you.

-- 
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+unsubscr...@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/b4f497cd-4653-47ae-a935-33358b3a7569%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error running Django tutorial

2016-02-28 Thread Mike Kipling
Igor,

Yes, the server was started.  Here are the contents of the command window 
including after trying to go to the website.


C:\Data\Django_Code\FirstApp\mysite>python manage.py runserver
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.
February 28, 2016 - 21:05:58
Django version 1.9.2, using settings 'mysite.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.
Not Found: /polls/
[28/Feb/2016 21:06:30] "GET /polls/ HTTP/1.1" 404 1921
Not Found: /favicon.ico
[28/Feb/2016 21:06:31] "GET /favicon.ico HTTP/1.1" 404 1936

-- 
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+unsubscr...@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/b1e75624-85f9-437f-b507-34ae0f6c2594%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error running Django tutorial

2016-02-28 Thread Mike Kipling
Yes, the server was started.  Here are the contents of the command window, 
including after trying to go to the website.


C:\Data\Django_Code\FirstApp\mysite>python manage.py runserver
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.
February 28, 2016 - 21:05:58
Django version 1.9.2, using settings 'mysite.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.
Not Found: /polls/
[28/Feb/2016 21:06:30] "GET /polls/ HTTP/1.1" 404 1921
Not Found: /favicon.ico
[28/Feb/2016 21:06:31] "GET /favicon.ico HTTP/1.1" 404 1936


On Saturday, February 27, 2016 at 1:50:39 PM UTC-6, Mike Kipling wrote:
>
> I am working through the Django tutorial *Writing your first Django app, 
> part 1.*
> I am using Windows 10, python 3.5.1 and Django 1.9.2 .
>  
> In the *Write your first view* section:  
> after writing the polls/views.py and polls/urls.py files, 
> and modifying the manage/urls.py file, 
> and starting the server,
>  
> When I go to http://localhost:8000/polls/ in the browser I get the 
> following error:
>
> 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. ^admin/
>
> The current URL, polls/, didn't match any of these.
>

-- 
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+unsubscr...@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/33ec29f2-9800-44b5-af10-1f1a2a5d9713%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error running Django tutorial

2016-02-28 Thread Igor Makarov
Mike, do you have the server restarted? 
As for me, the shell window says: 
Starting development server at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.



воскресенье, 28 февраля 2016 г., 18:15:24 UTC+3 пользователь Mike Kipling 
написал:
>
> Here are the two urls.py files:
>
> polls/urls.py
>
> from django.conf.urls import url
>
> from . import views
>
> urlpatterns = [
> url(r'^$', views.index, name='index'),
> ]
>
> mysite/urls.py
>
> from django.conf.urls import include, url
> from django.contrib import admin
>
> urlpatterns = [
> url(r'^polls/', include('polls.urls')),
> url(r'^admin/', admin.site.urls),
> ]
>
> Mike
>
>
>
> On Saturday, February 27, 2016 at 1:50:39 PM UTC-6, Mike Kipling wrote:
>>
>> I am working through the Django tutorial *Writing your first Django app, 
>> part 1.*
>> I am using Windows 10, python 3.5.1 and Django 1.9.2 .
>>  
>> In the *Write your first view* section:  
>> after writing the polls/views.py and polls/urls.py files, 
>> and modifying the manage/urls.py file, 
>> and starting the server,
>>  
>> When I go to http://localhost:8000/polls/ in the browser I get the 
>> following error:
>>
>> 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. ^admin/
>>
>> The current URL, polls/, didn't match any of these.
>>
>

-- 
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+unsubscr...@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/86c567ef-db30-4fde-b334-3c4a0931420d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error running Django tutorial

2016-02-28 Thread Mike Kipling
Here are the two urls.py files:

polls/urls.py

from django.conf.urls import url

from . import views

urlpatterns = [
url(r'^$', views.index, name='index'),
]

mysite/urls.py

from django.conf.urls import include, url
from django.contrib import admin

urlpatterns = [
url(r'^polls/', include('polls.urls')),
url(r'^admin/', admin.site.urls),
]

Mike



On Saturday, February 27, 2016 at 1:50:39 PM UTC-6, Mike Kipling wrote:
>
> I am working through the Django tutorial *Writing your first Django app, 
> part 1.*
> I am using Windows 10, python 3.5.1 and Django 1.9.2 .
>  
> In the *Write your first view* section:  
> after writing the polls/views.py and polls/urls.py files, 
> and modifying the manage/urls.py file, 
> and starting the server,
>  
> When I go to http://localhost:8000/polls/ in the browser I get the 
> following error:
>
> 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. ^admin/
>
> The current URL, polls/, didn't match any of these.
>

-- 
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+unsubscr...@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/57003bfd-6df6-4531-84f1-50747f2389eb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error running Django tutorial

2016-02-28 Thread Mike Kipling


On Saturday, February 27, 2016 at 2:06:42 PM UTC-6, James Schneider wrote:
>
>
> On Feb 27, 2016 11:49 AM, "Mike Kipling"  
> wrote:
> >
> > I am working through the Django tutorial Writing your first Django app, 
> part 1.
> > I am using Windows 10, python 3.5.1 and Django 1.9.2 .
> >  
> > In the Write your first view section: 
> > after writing the polls/views.py and polls/urls.py files,
> > and modifying the manage/urls.py file,
> > and starting the server,
> >  
> > When I go to http://localhost:8000/polls/ in the browser I get the 
> following error:
> >
> > 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:
> >
> > ^admin/
> >
> > The current URL, polls/, didn't match any of these.
> >
>
> It doesn't appear that you've included your apps urls.py correctly using 
> an include() in your project urls.py.
>
> Can you post both of your urls.py files?
>
> -James
>

-- 
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+unsubscr...@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/21babdd1-1113-4712-8ead-fa3e25c50df9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error running Django tutorial

2016-02-27 Thread James Schneider
On Feb 27, 2016 11:49 AM, "Mike Kipling"  wrote:
>
> I am working through the Django tutorial Writing your first Django app,
part 1.
> I am using Windows 10, python 3.5.1 and Django 1.9.2 .
>
> In the Write your first view section:
> after writing the polls/views.py and polls/urls.py files,
> and modifying the manage/urls.py file,
> and starting the server,
>
> When I go to http://localhost:8000/polls/ in the browser I get the
following error:
>
> 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:
>
> ^admin/
>
> The current URL, polls/, didn't match any of these.
>

It doesn't appear that you've included your apps urls.py correctly using an
include() in your project urls.py.

Can you post both of your urls.py files?

-James

-- 
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+unsubscr...@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/CA%2Be%2BciWixxatHfJ2736W9S8k8jCsgaF1DSu3j1AcTdDRZtbEMA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.