Re: How to save multiple model form in one template?

2018-09-19 Thread Sunil Kothiyal
HI Everett White , Please suggest solution i am trying since 3 days, I want Django model update if exist. I will very thankful to you. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from

Re: How to publish Django 2 Application using WHM/Cpanel?

2018-09-11 Thread Sunil Kothiyal
t;https://groups.google.com/d/msgid/django-users/57D9EB09-1CBB-438F-9C4E-40C82D4A39D6%40gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- *Thanks & Regards,* *Sunil Kothiyal* -- You received this message beca

Re: How to save multiple model form in one template?

2018-09-09 Thread Sunil Kothiyal
> class AddTaxView(LoginRequiredMixin, CreateView): >>>>template_name = 'invoices/add_tax.html' >>>>form_class = UserTaxesMultiForm >>>>success_url = '/add/tax/' >>>> >>>>*{WHAT IS THE CODE HERE F

Re: How to save multiple model form in one template?

2018-09-07 Thread Sunil Kothiyal
;> Visit this group at https://groups.google.com/group/django-users. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/django-users/CAOh93neYb8me%3DkLOigxMjeBLETPB2_bszL8nB4WhZsEreHwJMQ%40mail.gmail.com >>> <https://groups.google.com/d/msgid/d

Re: How to save multiple model form in one template?

2018-09-07 Thread Sunil Kothiyal
oglegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > > > -- > Mohd Aqib > Software Engineer > 9873141865 > > -- > You received this message because you are subscribed to a topic in the &

Re: Not able to install mysql for pyhton.

2018-09-06 Thread Sunil Kothiyal
o this group, send email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/CAL6GM4Joow6dee26P7hACHXfpC28JV8%3D5kvExPz08RZS22axmg%40mail.gmail.co

Re: How to create dynamic form field? Django 2.0

2018-07-19 Thread Sunil Kothiyal
Thank you for responding. Please can you tell me how i can save it if i will generate multiple form field using frontend javascript. On Thu, Jul 19, 2018, 9:23 PM mottaz hejaze wrote: > this is not a django stuff , this is frontend .. you can use jquery or > angularjs ..to hundle click event on

How to update django MultiModelForm? Please HELP

2018-06-25 Thread Sunil Kothiyal
Hello All, I had created multiModelForm in Django, I can view, and save data, I don't know how to Update data into the database. I want if user id exists in database then update else insert.exist in the database then update else insert. This Code is working for me but I don't know how to upda

Re: How to select one checkbox at one time DJANGO.

2018-06-21 Thread Sunil Kothiyal
-US/docs/Web/HTML/Element/input/radio > > Only one radio button in a given group can be selected at the same time > > > > > On Thursday, June 21, 2018 at 6:15:34 AM UTC-4, Sunil Kothiyal wrote: >> >> I want to show and hide text input box on checkbox selection. If s

How to select one checkbox at one time DJANGO.

2018-06-21 Thread Sunil Kothiyal
I want to show and hide text input box on checkbox selection. If someone select business should show textbox. Otherwise hide it. TWO_CHOICES = ( ('1', 'Business'), ('2', 'Indivitual'), ) business_or_individual = forms.ChoiceField(required=True, widget=forms.CheckboxSelectMultiple,choices=TWO_C

How to assign multiple model in a single html form in Django class based view?

2018-06-19 Thread Sunil Kothiyal
I am new in Django. I am working on Django 2.0. I need to show multiple model forms(user profile, additional details) in a single HTML form and save it on one click. *form.py file is here* class BusinessProfileForm(forms.ModelForm): class Meta: model = StUserDetails fields = ('user_