Re: Unable to get an object value using get method in Django

2012-12-31 Thread Babatunde Akinyanmi
Hi coded, You didn't say what the new error is. Anyway, in your view, `name` is not in the namespace. Its just like doing this: Python 2.7.3 (default, Aug 1 2012, 05:16:07) [GCC 4.6.3] on linux2 >>>a = 1 >>>a + a 2 >>>a + b Traceback (most recent call last): File "", line 1, in NameError: name

Re: Unable to get an object value using get method in Django

2012-12-30 Thread coded kid
Yeah, its a name of a field in my form. I want to the value automatically since I don't know the name of the place the user will choose. I tried adding your correction but i'm getting error. On Dec 31, 2:33 am, Bill Freeman wrote: > On Sun, Dec 30, 2012 at 7:11 PM, coded kid wrote: > > I want t

Re: Unable to get an object value using get method in Django

2012-12-30 Thread Bill Freeman
On Sun, Dec 30, 2012 at 7:11 PM, coded kid wrote: > I want to get an object value from a model. After trying the get() > method, I've been unable to make it work.And I'm getting the below > error. I have a page that display the name of a place to users, so if > a user see a place he likes, he wil

Unable to get an object value using get method in Django

2012-12-30 Thread coded kid
I want to get an object value from a model. After trying the get() method, I've been unable to make it work.And I'm getting the below error. I have a page that display the name of a place to users, so if a user see a place he likes, he will go ahead and fill the form.And in the form, I want to get