List Info

Thread: NameError when following tutorial in djangobook.com/en/beta/chapter03/




NameError when following tutorial in djangobook.com/en/beta/chapter03/
country flaguser name
United States
2007-10-10 06:33:22
I'm new to python and django and I'm trying to follow the
tutorial on
djangobook.com, but when i get to the step (chapter 3) where
the first
piece of code should be executed (current_time) i get a
NameError
telling me "name 'current_datetime' is not
defined"

I'm running django 0.96 on python 2.5.1 on windows 2003.

I get the "It worked" screen fine.

I think I have all paths as they should be, my project is
in
pythonpath, I can import my project, the url is mapped.

Any tips would be greatly appreciated, I can't seem to find
anything
about it elsewhere (as it's apparently a very generic
error).

Kind regards,

Drdukk


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: NameError when following tutorial in djangobook.com/en/beta/chapter03/
country flaguser name
United States
2007-10-11 03:46:46
Turned out I was missing an import statement for my code in
urls.py
(and it's in the tutorial but I missed it)

Cheers


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: NameError when following tutorial in djangobook.com/en/beta/chapter03/
country flaguser name
United States
2007-10-11 03:46:46
Turned out I was missing an import statement for my code in
urls.py
(and it's in the tutorial but I missed it)

Cheers


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: NameError when following tutorial in djangobook.com/en/beta/chapter03/
country flaguser name
United States
2007-10-11 03:46:44
Turned out I was missing an import statement for my code in
urls.py
(and it's in the tutorial but I missed it)

Cheers


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: NameError when following tutorial in djangobook.com/en/beta/chapter03/
user name
2007-10-11 04:20:47
On 10/10/07, drdukk <drdukkgmail.com> wrote:
>
> I'm new to python and django and I'm trying to follow
the tutorial on
> djangobook.com, but when i get to the step (chapter 3)
where the first
> piece of code should be executed (current_time) i get a
NameError
> telling me "name 'current_datetime' is not
defined"
>
> I'm running django 0.96 on python 2.5.1 on windows
2003.
>
> I get the "It worked" screen fine.
>
> I think I have all paths as they should be, my project
is in
> pythonpath, I can import my project, the url is
mapped.
>
> Any tips would be greatly appreciated, I can't seem to
find anything
> about it elsewhere (as it's apparently a very generic
error).
>

drdukk, sorry for lack of response on mailing list.  The
beta version
of the book has been out for quite a while and is not in
line w/
django is some respects.

Even so, when reporting errors like this, putting code on
dpaste.com
as well as (full) traceback will generally get you a more
helpful and
informed response.

Glad IRC worked for you.  

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---


[1-5]

about | contact  Other archives ( Real Estate discussion Medical topics )