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
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
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
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
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
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
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
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/
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
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
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
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
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
> >
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
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
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.
16 matches
Mail list logo