Re: Working with Forms and Session Variables

2009-02-11 Thread gbd
Thanks for all your help it's much appreciated. I will work with both methods and see if i can get them to work! Thanks again On Feb 11, 12:13 pm, Daniel Roseman wrote: > On Feb 11, 4:11 pm, gbd wrote: > > > > > Another point (sorry I should have said this in my origi

Re: Working with Forms and Session Variables

2009-02-11 Thread gbd
Another point (sorry I should have said this in my original post) My form is bound i.e. in my view form = RecipeForm(request.POST) I don't believe that I can use initial in this case? please let me know if I've misunderstood thanks again! On Feb 11, 11:06 am, gbd wrote: >

Re: Working with Forms and Session Variables

2009-02-11 Thread gbd
Thanks! A follow up question - Would i exclude that field in my class description? i.e. class RecipeForm(forms.ModelForm): class Meta: model = Recipes exclude = ('user',) On Feb 11, 10:54 am, Daniel Roseman wrote: > On Feb 11, 3:20 p

Working with Forms and Session Variables

2009-02-11 Thread gbd
Hello, I am presently working on my first Django project and seemed to be a little stuck concerning session variables and forms. This is how my app is laid out: - user logs in and is directed to a "you have successfully logged in" page - user is then redirected to what i am hoping to be an accou