Re: newbie: trying to understand django templates

2007-07-02 Thread Malcolm Tredinnick
On Mon, 2007-07-02 at 18:15 -0700, walterbyrd wrote: > On Jul 2, 5:13 pm, Carl Karsten <[EMAIL PROTECTED]> wrote: > > > "not using X" does not say what you are doing - my best guess is "what will > > be > > available if I just run python?" if so, the answer is "nothing other than > > you > > c

Re: newbie: trying to understand django templates

2007-07-02 Thread Carl Karsten
walterbyrd wrote: > On Jul 2, 5:13 pm, Carl Karsten <[EMAIL PROTECTED]> wrote: > >> "not using X" does not say what you are doing - my best guess is "what will >> be >> available if I just run python?" if so, the answer is "nothing other than >> you >> can import django." > > As I mentioned,

Re: newbie: trying to understand django templates

2007-07-02 Thread walterbyrd
On Jul 2, 5:43 pm, Vincent Nijs <[EMAIL PROTECTED]> wrote: > They worked for me. So you maybe missing something :) > > Is urls.py still trying to import the hours_ahead function? If that doesn't > help try posting your code. That was exactly it. I removed the hours_ahead parameter from the patt

Re: newbie: trying to understand django templates

2007-07-02 Thread walterbyrd
On Jul 2, 5:13 pm, Carl Karsten <[EMAIL PROTECTED]> wrote: > "not using X" does not say what you are doing - my best guess is "what will be > available if I just run python?" if so, the answer is "nothing other than you > can import django." As I mentioned, this is what I was trying to do: >>>

Re: newbie: trying to understand django templates

2007-07-02 Thread Vincent Nijs
They worked for me. So you maybe missing something :) Is urls.py still trying to import the hours_ahead function? If that doesn't help try posting your code. Vincent On 7/2/07 6:36 PM, "walterbyrd" <[EMAIL PROTECTED]> wrote: > > I continue to be frustrated with examples given in this book, w

Re: newbie: trying to understand django templates

2007-07-02 Thread walterbyrd
I continue to be frustrated with examples given in this book, which simply do not work. I am trying to follow the code examples in the book. In chapter 4, the book gives this code example: from django.shortcuts import render_to_response import datetime def current_datetime(request): now = d

Re: newbie: trying to understand django templates

2007-07-02 Thread Carl Karsten
walterbyrd wrote: > > > On Jul 2, 2:30 pm, Carl Karsten <[EMAIL PROTECTED]> wrote: >> walterbyrdwrote: >>> On Jul 2, 1:24 pm, Vincent Nijs <[EMAIL PROTECTED]> >>> wrote: all the 'settings' are taken care of for you so you don't have to do any exports or anything like that. The import s

Re: newbie: trying to understand django templates

2007-07-02 Thread walterbyrd
On Jul 2, 2:30 pm, Carl Karsten <[EMAIL PROTECTED]> wrote: > walterbyrdwrote: > > On Jul 2, 1:24 pm, Vincent Nijs <[EMAIL PROTECTED]> > > wrote: > > >> all the 'settings' are taken care of for you so you don't have to do any > >> exports or anything like that. The import statement for Context an

Re: newbie: trying to understand django templates

2007-07-02 Thread Carl Karsten
walterbyrd wrote: > On Jul 2, 1:24 pm, Vincent Nijs <[EMAIL PROTECTED]> > wrote: > >> all the 'settings' are taken care of for you so you don't have to do any >> exports or anything like that. The import statement for Context and Template >> should work fine when you use the above command. >> >

Re: newbie: trying to understand django templates

2007-07-02 Thread walterbyrd
On Jul 2, 1:24 pm, Vincent Nijs <[EMAIL PROTECTED]> wrote: > all the 'settings' are taken care of for you so you don't have to do any > exports or anything like that. The import statement for Context and Template > should work fine when you use the above command. > Okay, but what happens if I'm

Re: newbie: trying to understand django templates

2007-07-02 Thread Vincent Nijs
By using: python manage.py shell all the 'settings' are taken care of for you so you don't have to do any exports or anything like that. The import statement for Context and Template should work fine when you use the above command. Vincent On 7/2/07 2:14 PM, "walterbyrd" <[EMAIL PROTECTED]> w