Re: Unable to have a template NOT show up

2011-09-02 Thread Yves S. Garret
You know what would be great? Seeing the finished code for this tutorial, has anyone seen it? I'm know I tripped up somewhere and that's the main reason why I'm getting these errors, so seeing the finished product would be a nice thing to look at right now. On Fri, Sep 2, 2011 at 9:36 AM, Yves

Re: Unable to have a template NOT show up

2011-09-02 Thread Yves S. Garret
Yes, it is. + # Django settings for mysite project. DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( # ('Your Name', 'your_em...@example.com'), ) MANAGERS = ADMINS DATABASES = { 'default': { 'ENGINE': 'sqlite3', # Add

Re: Unable to have a template NOT show up

2011-09-01 Thread Reinout van Rees
On 01-09-11 21:57, Yves S. Garret wrote: Anyways, this is my current error that I'm getting: TemplateDoesNotExist at /polls/1/ polls/detail.html ... Django tried loading these templates, in this order: * Using loader |django.template.loaders.filesystem.Loader|: o

Re: Unable to have a template NOT show up

2011-09-01 Thread Yves S. Garret
Yes, you're correct. Thanks for pointing that out. I'll be honest, I get the impression that I'm at the deep end of the pool and not exactly dog-paddling very well :) . I don't doubt that Django does A LOT of nice things for you, but this is a major step from my PHP coding days when all I had

Re: Unable to have a template NOT show up

2011-09-01 Thread Jirka Vejrazka
Yves, this: ^polls/ ^polls/$ ^polls/ ^polls/(?P\d+)/$ ^polls/ ^polls/(?P\d+)/results/$ ^polls/ ^polls/(?P\d+)/vote/$ suggests that you did not follow the tutorial closely. Django keeps telling you what's wrong - your urls.py in your application (pools) duplicates the word "polls" in (most

Re: Unable to have a template NOT show up

2011-09-01 Thread Yves S. Garret
To be honest, I have no idea. I was just following the tutorial (maybe I edited the wrong file, maybe the tutorial is wrong.) Do you know of a good book on this subject that not only teaches you about Django, but also about frameworks? This is the contents of one urls.py file (in a project

Re: Unable to have a template NOT show up

2011-09-01 Thread Reinout van Rees
On 01-09-11 15:04, Yves S. Garret wrote: Using the URLconf defined in |mysite.urls|, Django tried these URL patterns, in this order: 1. ^polls/ ^polls/$ 2. ^polls/ ^polls/(?P\d+)/$ 3. ^polls/ ^polls/(?P\d+)/results/$ 4. ^polls/ ^polls/(?P\d+)/vote/$ 5. ^polls/ ^admin/ 6. ^admin/ The

Re: Unable to have a template NOT show up

2011-09-01 Thread Yves S. Garret
The other issue that I spoke about was this: Page not found (404)Request Method:GETRequest URL: http://localhost:8000/polls/1/ Using the URLconf defined in mysite.urls, Django tried these URL patterns, in this order: 1. ^polls/ ^polls/$ 2. ^polls/ ^polls/(?P\d+)/$ 3. ^polls/

Re: Unable to have a template NOT show up

2011-09-01 Thread Yves S. Garret
Specifically, the issue was in urls.py. On Sep 1, 2:24 am, kenneth gonsalves wrote: > On Wed, 2011-08-31 at 12:05 -0700, Yves S. Garret wrote: > > Caught ViewDoesNotExist while rendering: Could not import polls.view. > > Error was: No module named view > > should it not

Re: Unable to have a template NOT show up

2011-09-01 Thread kenneth gonsalves
On Wed, 2011-08-31 at 12:05 -0700, Yves S. Garret wrote: > Caught ViewDoesNotExist while rendering: Could not import polls.view. > Error was: No module named view should it not be views? -- regards Kenneth Gonsalves -- You received this message because you are subscribed to the Google Groups

Re: Unable to have a template NOT show up

2011-08-31 Thread Reinout van Rees
On 31-08-11 22:39, Yves S. Garret wrote: When I said you're right, I meant your insight into my spelling error. That is the one thing that's hard in every web framework: find the spots where something can be wrong when everything *seems* right. Four common spots in django: - Typo in

Re: Unable to have a template NOT show up

2011-08-31 Thread Yves S. Garret
When I said you're right, I meant your insight into my spelling error. Those are the most annoying errors since they are so difficult to figure out after staring at the screen for so long. On Aug 31, 3:35 pm, Reinout van Rees wrote: > On 31-08-11 21:05, Yves S. Garret

Re: Unable to have a template NOT show up

2011-08-31 Thread Yves S. Garret
You're right! Thank you. I have another issue with this page and I'll write later (busy with something else.) On Aug 31, 3:35 pm, Reinout van Rees wrote: > On 31-08-11 21:05, Yves S. Garret wrote: > > > In template c:\python27\lib\site-packages\django\contrib\admin > >

Re: Unable to have a template NOT show up

2011-08-31 Thread Reinout van Rees
On 31-08-11 21:05, Yves S. Garret wrote: In template c:\python27\lib\site-packages\django\contrib\admin \templates\admin\change_list.html, error at line 11 Caught ViewDoesNotExist while rendering: Could not import polls.view. Error was: No module named view Most possible reason that I can

Re: Unable to have a template NOT show up

2011-08-31 Thread Yves S. Garret
This is the current error that I'm getting in my browser: +++ +++ Template error In template c:\python27\lib\site-packages\django\contrib\admin \templates\admin\change_list.html, error at line 11 Caught ViewDoesNotExist

Unable to have a template NOT show up

2011-08-31 Thread Yves S. Garret
So I'm following this Django tutorial to become more familiar with how it works: https://docs.djangoproject.com/en/dev/intro/tutorial03/#write-views-that-actually-do-something I got to this part: Reload the page. Now you'll see an error: TemplateDoesNotExist at /polls/ polls/index.html Ah.