Re: How to add form field dynamically?

2018-09-26 Thread Django Lover
, 2018, 6:01 PM Django Lover, > wrote: > >> Hi joel Thank for response. >> >> *I want something like this-* >> >> [image: form.png] >> >> >> >> >> >> >> >> >> >> 1- when I click on *add row* butto

Re: How to add form field dynamically?

2018-09-26 Thread Django Lover
Hi joel Thank for response. *I want something like this-* [image: form.png] 1- when I click on *add row* button a new Row (*No-2)* will create dynamically. 2- In the select *product/service* its an options dropdown. the option should have related *model data*(from table product and

How to add form field dynamically?

2018-09-26 Thread Django Lover
I am creating a model form, i need to add a field dynamically can you please give me the solution by using your sharp intelligence? [image: synm.png] Product/service are coming from the model field.they are not static. Add New is unlimited. please help -- You received this message

Re: How to update if user exist instead of create?

2018-09-18 Thread Django Lover
Thanks, Larry for replying. I want to say I am new in Django and I don't know how to use in class-based view, Can you help me to integrate with CBV? On Tuesday, September 18, 2018 at 5:57:28 PM UTC+5:30, larry@gmail.com wrote: > > On Tue, Sep 18, 2018 at 8:13 AM, Django Lover &

How to update if user exist instead of create?

2018-09-18 Thread Django Lover
How i can update model when Key exist else create a new one?? My code is- **Form.py** class UserSettingForm(forms.ModelForm): class Meta: model = StUserSetting fields = ( 'default_language', 'prim_currency', 'number_format', 'decimal_format',

How to insert setting when user creating?

2018-09-17 Thread Django Lover
Dear Django community, I am stuck in a logical condition where I need your help. 1- I am registering a user using default *Django auth user and social_django library, *I need when user registering it should submit default model value in one more table. Like- model - user(default) model -

How to get multi form initial data?

2018-09-11 Thread Django Lover
I have the view like this- The form is working good but i issue is not able to get from initial data. PLEASE HELP **formview.py** class AddProfile(LoginRequiredMixin, CreateView): template_name = 'users/add_user_details.html' form_class = { 'contactInformation':

How to publish Django 2 Application using WHM/Cpanel?

2018-09-11 Thread Django Lover
Dear Django Community!! I have a dedicated centos server with root access with WHM, I am new to python. Please, Can you give me information about how I can launch my Django website?? But the condition is- 1- Server have 4 user account(i.e. A, B,C,D). 2- I want to install Django only for user

How to save multiple model form in one template?

2018-09-07 Thread Django Lover
I have one page, which I have to show three model form and three different submit button for each. My question is how I can save these three form individually? FOLLOWING IS CODE:- **form.py** class UserTaxesMultiForm(MultiModelForm): form_classes = { 'user_tax_form': MyForm,

Not able to install mysql for pyhton.

2018-09-06 Thread Django Lover
*I am getting following error when i am running pip install mysql-python Comand . Please help??* [image: asd.png] -- 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 it, send an

I am not able to install mysql for python.

2018-09-06 Thread Django Lover
*I am getting following error when i am running pip install mysql-python Comand . Please help??* [image: asd.png] -- 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 it, send

Re: How to create dynamic form field? Django 2.0

2018-07-19 Thread Django Lover
@Melvyn Sopacua Can you please give me simple solution of this problem? On Friday, July 20, 2018 at 11:15:06 AM UTC+5:30, Melvyn Sopacua wrote: > > On donderdag 19 juli 2018 16:18:07 CEST Django Lover wrote: > > This is hard for me understand can you please give some co

Re: How to create dynamic form field? Django 2.0

2018-07-19 Thread Django Lover
Then you will need some > javascript to handle showing additional instances of the form when the > button is clicked > > On Thursday, July 19, 2018 at 9:29:51 AM UTC-4, Django Lover wrote: >> >> Here is the image of the form what is need when user click on "Add New

How to create dynamic form field? Django 2.0

2018-07-19 Thread Django Lover
Here is the image of the form what is need when user click on "Add New Tax " two input (Tax name and Value ) should generate dynamically and with all field of the form.

Re: How to update django MultiModelForm? Please HELP

2018-06-25 Thread Django Lover
I think This is very easy anyone 1 Year experienced guy can answer it. On Monday, June 25, 2018 at 6:51:14 PM UTC+5:30, Sunil Kothiyal wrote: > > 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