Re: tutorial error

2011-11-02 Thread rihad
On Nov 2, 1:29 pm, Daniel Roseman wrote: > On Wednesday, 2 November 2011 07:24:39 UTC, rihad wrote: > > > render_to_response('polls/detail.html', {'poll': p}) Oops, of course this has no relation to URLs, it's just a filepath :) -- You received this message because you are subscribed to the

Re: tutorial error

2011-11-02 Thread rihad
On Nov 2, 1:29 pm, Daniel Roseman wrote: > On Wednesday, 2 November 2011 07:24:39 UTC, rihad wrote: > > > It says at the end of part 3 of the Django tutorial: > > > "The idea behind include() and URLconf decoupling is to make it easy > > to plug-and-play URLs. Now that polls are in their own URL

Re: tutorial error

2011-11-02 Thread Daniel Roseman
On Wednesday, 2 November 2011 07:24:39 UTC, rihad wrote: > > It says at the end of part 3 of the Django tutorial: > > "The idea behind include() and URLconf decoupling is to make it easy > to plug-and-play URLs. Now that polls are in their own URLconf, they > can be placed under "/polls/", or un

Re: Tutorial Error - TemplateDoesNotExist at /polls/

2010-10-21 Thread Robbington
Apologies, I wasnt sure which bit of the tutorial you where at. I think I see now the problem. Did you just stop reading after you entered the last bit of code in views.py? """Reload the page. Now you'll see an error: TemplateDoesNotExist at /polls/""" So index.html is in /home/me/Templates/poll

Re: Tutorial Error - TemplateDoesNotExist at /polls/

2010-10-21 Thread TheNational22
I fully understood that and I thought it was implied in that I said I was working with the tutorial I would have that file created. You only asked where my template dir was directed to and that I put urls.py in my reply, I would have put this in there if you had requested. Here it is. Now, as far a

Re: Tutorial Error - TemplateDoesNotExist at /polls/

2010-10-21 Thread Robbington
You see, what I tried to explain in the last message, my friend was that index in 'polls.views.index') doesnt point the url polls/ to the index.html but to the function you are suppose to create in the views.py file in your app directory. Your view.py file (inside your poll app folder)should look

Re: Tutorial Error - TemplateDoesNotExist at /polls/

2010-10-21 Thread TheNational22
The index.html file is in the right location, what worries me is that the template loaders are showing that they are loading nothing. In all the other qustion in the google groups here that referenced an isssue with templates not loading, their traceback had something like unable to find documnet a

Re: Tutorial Error - TemplateDoesNotExist at /polls/

2010-10-21 Thread Robbington
Where is your template_dirs in settings.py pointed too? If you can post your urls.py. Looking at the tutorial again, (r'^polls/$', 'polls.views.index'), means that the url 'polls' will serve the index function in the views.py file inside your polls app. Your index.html should lie inside the top l