Field 'roof_age' expected a number but got ('1',)

2022-09-17 Thread Nishant Sagar
Hey folks, While saving the values to the data to the database I'm getting this Field 'roof_age' expected a number but got ('1',) How can I resolve this? Here is my views.py file def form(requests): if requests.method == 'POST': name=requests.POST['name'], # roof_age= requests.POST['roof_age'], r

Re: Field 'roof_age' expected a number but got ('1',)

2022-09-17 Thread Nishant Sagar
I really appreciate your help, removing comma has fixed the problem but now for check boxes and bill (which is file type) I’m getting string output instead of bool and file How can I fix that now? On Sun, 18 Sep 2022 at 1:24 AM, Esteban Chacon Martin wrote: > Also take off each comma after the

Regarding Django forms

2022-09-22 Thread Nishant Sagar
Hey forks, I’m in little dilemma regarding Django forms. I'm working on a project as a backend guy who doesn't know much about CSS and JavaScript so a frontend guy delivered me a form template designed using CSS, however, Django documentation suggests that it's good practice to use Django forms.

Re: Regarding Django forms

2022-09-23 Thread Nishant Sagar
Upload your bill : On Fri, Sep 23, 2022 at 7:20 PM siyamak abasnezhad wrote: > You can use widget Tweeks or crispy > > > On Fri, Sep 23, 2022, 09:26 Nishant Sagar wrote: > >> Hey forks, >> >> I’m in little dilemma regarding Django forms. I'm work

Re: Regarding Django forms

2022-09-23 Thread Nishant Sagar
And one more thing, why is radio btn returning 'on' even if it is not selected? On Fri, Sep 23, 2022 at 7:36 PM Nishant Sagar wrote: > That's the whole point. I've attached my form.html file, do you think it's > a generous idea to design the whole form page using

Re: Regarding Django forms

2022-09-23 Thread Nishant Sagar
t to convert this to a Form-based > template. But what it provides you are all the facilities available within > Django forms for data validation and conversions. > > On 9/23/2022 10:06 AM, Nishant Sagar wrote: > > That's the whole point. I've attached my form.html file, do y

Static files is not loading while deploying the project to AWS ec2

2022-11-05 Thread Nishant Sagar
= os.path.join(BASE_DIR, 'staticfiles') STATICFILES_DIRS = (os.path.join(BASE_DIR, 'static'),) Project URl - http://54.242.38.208/ Github- https://github.com/Nishant-Sagar/BaskinSolar Thank you for your help, Nishant -- You received this message because you are subsc

Regarding a bug fix

2020-11-09 Thread Nishant Sagar
As I'm new to open source. I found a ticket and want to fix that but that ticket was issued 6 years ago. So I wanted to know is it worth it to fix that? -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To

Re: Regarding a bug fix

2020-11-09 Thread Nishant Sagar
ssue to take on, then I’d say either of those are good > enough reasons. 🙂 > > Which issue are you looking at? > > Kind Regards, > > Carlton > > > On 9 Nov 2020, at 17:25, Nishant Sagar wrote: > > As I'm new to open source. I found a ticket and want to fix tha

Regarding my first bug fix.

2020-11-10 Thread Nishant Sagar
This is the first time I'm contributing to an open source and I found a ticket and wanted to solve that issue but I don't actually know how to do so. Can someone please help me fixing the first bug? This is the bug I want to work on. Thank You. [image: Screenshot 2020-11-11 115512.png] -- You

Re: Regarding my first bug fix.

2020-11-11 Thread Nishant Sagar
I’m really sorry Sir and yeah, Thank you for clarifying my doubts. On Wed, 11 Nov 2020 at 1:25 PM, Carlton Gibson wrote: > Hi Nishan. > > This is the exact same query you posted two days ago... — please don't > post multiple times, that's just spammy. You have to understand that folks > can't a

Beginner friendly issues

2021-05-30 Thread Nishant Sagar
Hey I'm a beginner in this project can anyone suggest me any beginner friendly issues. Thank You -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails fr

#32749 PyMemcacheCache uses default_noreply=False although pymemcache recommends to set to True

2021-05-30 Thread Nishant Sagar
I've gone through the documentation of pymencache and if I'm not wrong its nowhere written that it recommends default_noreply to be set to True pymemcache documentation says noreply will not read errors returned from the memcached server. If a function with noreply=True causes an error on the