Re: Get Form from string?

2013-06-28 Thread yeswanth nadella
I am afraid, I did not understand your question. Are you trying to generate a form based on your model/ models? On Friday, June 28, 2013 3:23:00 PM UTC-5, MacVictor wrote: > > and how to get only Form (not ModelForm) use string name? > > W dniu piątek, 28 czerwca 2013 22:09:41 UTC+2 użytkownik M

Re: What is the best practice to learn Django 1.5?

2013-06-28 Thread yeswanth nadella
The way I learned it was by reading the offical free django book. According to me, the tutorial app does not teach you lot of django. The first chapter 8 chapter of the book will give you a solid understanding. Hope that thelps. On Friday, June 28, 2013 2:35:17 AM UTC-5, subs...@gmail.com wrote:

Re: Add dynamically form to Formset

2013-06-27 Thread yeswanth nadella
Can you explain a little more? On Thursday, June 27, 2013 11:22:14 AM UTC-5, Mário Idival wrote: > > Hello, > How you do for add more formset in form with Django 1.5? > > -- > Mário Idival > > *Twitter *: *@marioigd* > *Facebook*: *mario.idival* > *User Linux : **#554446* > Skype*: marioidival* >

Re: A PHP framework with some Django features?

2013-06-27 Thread yeswanth nadella
Even cake php framework does create db tables from models. The only thing is that you need to install a third party application. On Thursday, June 27, 2013 4:13:38 PM UTC-5, thoms wrote: > > Hello, > > I have a PHP background, and I'm learning Django. > Long story short: I love Django, but s

I am having trouble using ajax with model form set.

2013-06-27 Thread yeswanth nadella
EventsFormSet = modelformset_factory(Events, extra=0) if request.method == 'POST': formset = EventsFormSet(request.POST) if formset.is_valid(): formset.save(); return HttpResponseRedirect('/sucess/') else: formset = EventsFormSet(queryset=E

How to have two unicode methods in the models?

2013-06-25 Thread yeswanth nadella
This is what I currently have- def __unicode__(self): return u'%s %s %s %s %s %s' % (self.first_name, self.last_name, self.course, self.lab, self.start_time, self.end_time) How do I add another unicode method so that it will return only first_name and last_name? I understand that unicode method

How can I have two unicode methods?

2013-06-25 Thread yeswanth nadella
In my models file, I have the following unicode method- def __unicode__(self): return u'%s %s %s %s %s %s' % (self.first_name, self.last_name, self.course, self.lab, self.start_time, self.end_time) How can I have another unicode method which will return only first_name and last_name? I understa