Re: Having trouble with Django tutorial

2017-03-05 Thread Yves S. Garret
Yes, that did it. I placed the file into learning_python/learning_python and everything just worked. Thank 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

Re: Having trouble with Django tutorial

2017-03-03 Thread Vijay Khemlani
Starting from the project root (the directory that contains your manage.py file), that project's main url file should be in learning_python/urls.py also, there should be only two urls.py in your project directory, the one for the project and the other inside the polls app. On 3/3/17, Yves S. Gar

Re: Having trouble with Django tutorial

2017-03-03 Thread Yves S. Garret
Is this learning_python/urls.py or learning_python/learning_python/urls.py? On Friday, March 3, 2017 at 10:04:32 AM UTC-5, Vijay Khemlani wrote: > > You should import the polls urls as it appears in the tutorial > > url(r'^polls/', include('polls.urls')), > > On 3/3/17, Yves S. Garret > wrote:

Re: Having trouble with Django tutorial

2017-03-03 Thread Yves S. Garret
This is what I have: 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'm still encountering the same problem. On Friday, March 3, 2017 at 10:04:32 AM UTC-5, Vijay Khemlani

Re: Having trouble with Django tutorial

2017-03-03 Thread Vijay Khemlani
You should import the polls urls as it appears in the tutorial url(r'^polls/', include('polls.urls')), On 3/3/17, Yves S. Garret wrote: > Like this: > > from django.conf.urls import include, url > from django.contrib import admin > > urlpatterns = [ > url(r'^polls/', urls), > url(r'^admin/',

Re: Having trouble with Django tutorial

2017-03-03 Thread Yves S. Garret
Like this: from django.conf.urls import include, url from django.contrib import admin urlpatterns = [ url(r'^polls/', urls), url(r'^admin/', admin.site.urls), ] Is there a way to print out strings to indicate where the problem is? On Friday, March 3, 2017 at 8:35:47 AM UTC-5, Vijay Khemlani

Re: Having trouble with Django tutorial

2017-03-03 Thread Vijay Khemlani
How does your learning_python.urls look like? On 3/3/17, Yves S. Garret wrote: > Yes. > > On Thursday, March 2, 2017 at 11:09:58 AM UTC-5, Vijay Khemlani wrote: >> >> Did you do this step? >> >> The next step is to point the root URLconf at the polls.urls module. In >> mysite/urls.py, add an impo

Re: Having trouble with Django tutorial

2017-03-03 Thread Yves S. Garret
Yes. On Thursday, March 2, 2017 at 11:09:58 AM UTC-5, Vijay Khemlani wrote: > > Did you do this step? > > The next step is to point the root URLconf at the polls.urls module. In > mysite/urls.py, add an import for django.conf.urls.include and insert an > include() >

Re: Having trouble with Django tutorial

2017-03-02 Thread Vijay Khemlani
Did you do this step? The next step is to point the root URLconf at the polls.urls module. In mysite/urls.py, add an import for django.conf.urls.include and insert an include() in the urlpatterns list, so you have: mysite/

Having trouble with Django tutorial

2017-03-02 Thread Yves S. Garret
Hi all, I'm going through this tutorial: https://docs.djangoproject.com/en/1.10/intro/tutorial01/ And the problem that I'm having is when I start the 'polls' application from inside my project and then go to localhost:8000/polls, I get a 404. Page not found (404) Request Method: GET Request URL

Re: Python Noob Having Trouble with Django Tutorial 1

2007-05-13 Thread Kenneth Gonsalves
On 13-May-07, at 11:40 PM, kilgore wrote: > at 0x014CE2D0>> i bet you wrote Poll.objects.all instead of Poll.objects.all() -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/web/ --~--~-~--~~~---~--~~ You received this message because yo

Re: Python Noob Having Trouble with Django Tutorial 1

2007-05-13 Thread kilgore
LOL Thanks Flavio > Flavio. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [

Re: Python Noob Having Trouble with Django Tutorial 1

2007-05-13 Thread Flavio Curella
On 13 Mag, 20:10, kilgore <[EMAIL PROTECTED]> wrote: > I tried this and got: > > 13/05/2007> python manage.py shell > Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit > (Intel)] on win32 > Type "help", "copyright", "credits" or "license" for more information. > (InteractiveCon

Python Noob Having Trouble with Django Tutorial 1

2007-05-13 Thread kilgore
Hi, I have installed everything I need to get Django working on my Windows XP box with Apache and MySQL. Everything seemed to be going well until I tried the instructions in tutorial01.txt. At the point where it says: Once you're in the shell, explore the database API:: # Import the model