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'],
roof_age= int(requests.POST.get('roof_age')),
email = requests.POST['email'],
phone = requests.POST['phone'],
address = requests.POST['address'],
monthly_bill = requests.POST['monthly_bill'],
HOA = requests.POST['HOA'],
battery = requests.POST['battery'],
foundation = requests.POST['foundation'],
roof_type = requests.POST['roof_type'],
availability= requests.POST['availability'],
bill = requests.POST['bill']

details = Details(
name = name,
roof_age = roof_age,
email = email,
phone = phone,
address = address,
monthly_bill = monthly_bill,
HOA = HOA,
battery = battery,
foundation = foundation,
roof_type = roof_type,
availability= availability,
bill = bill
)
print(type(roof_age))
print(name, roof_age, email, phone, address, monthly_bill, HOA,battery,
foundation, roof_type, availability, bill)
print("The data has been save to db")
I'm getting data in the form of tuple instead of values

The print statement is giving me output as
('Nishant',) ('nishantsag...@gmail.com',) ('8210574914',) ('Test-1',)
('6',) ('on',) ('on',) ('on',) ('Spanish',) ('2022-09-17T23:38',)
leetcode.cpp

And Even Though I am turning my radio button off I'm still getting values
as on

Here is my models.py file
class Details(models.Model):
name = models.CharField(max_length=25)
roof_age = models.IntegerField()
email = models.EmailField()
phone = models.IntegerField()
address = models.TextField(max_length=100)
monthly_bill = models.IntegerField()
HOA = models.BooleanField(default=True)
battery = models.BooleanField(default=True)
foundation = models.BooleanField(default=True)
roof_type = models.CharField(max_length=20)
availability = models.DateTimeField()
bill = models.FileField(upload_to='uploads/%d/%m/%y/')

class Meta:
verbose_name = 'details'
verbose_name_plural = 'details'

def __str__(self):
return self.name

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 from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CANNtL-%2BHu6zaTtBdHC1_9AaJsRq81mms-%3DX8Voxyj9CYgmsPYA%40mail.gmail.com.


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 assigment and that should fix it all,
> forget about indexing as i recommend before
>
> El sáb, 17 sept 2022 a las 14:38, Esteban Chacon Martin (<
> n4b3...@gmail.com>) escribió:
>
>> Use requests.POST.get('roof_age')[0] instead, seems to me like you are
>> getting a list instead of a string when doing the get
>>
> --
> 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 from it, send an
> email to django-developers+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-developers/CAA%2BkBvyjeK5wycRV7LeKLQsa9UhX6W0iiJDbzcppnfr516_JYA%40mail.gmail.com
> 
> .
>

-- 
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 from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CANNtL-Lp0R-5fv_NnaW6xdR3Gsz5mCv2mWECu2%3DZYnFMruQjXw%40mail.gmail.com.


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.

So how feasible do you think it is for a frontend guy to learn Django
widgets from scratch to implement the same thing he can easily do from CSS
and JS. As a newbie backend guy, it's not easy for me either to learn
frontend tech to implement the same thing in so little time.

So I tried implementing the form without using Django forms but I find it
hard to deal with files as there is no documentation I can look up to.

So can we add these to the documentation or it is still advisable to use
Django forms?


Thanks and regards,
Nishant

-- 
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 from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CANNtL-Kqud7V6sk_%3DYnagzATw8eJjO9pCeDx9Za80XywXBi2tQ%40mail.gmail.com.


Re: Regarding Django forms

2022-09-23 Thread Nishant Sagar
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 widgets if I already
have the form template ready?









{% csrf_token %}
Registration form


Name of Homeowner :



Roof Age :




Email ID :



Phone :



Full Home Address :



Average Monthly Electric Bill Costs :



Do you have HOA?


Yes




No




Would you also need a battery? 


Yes




No




Is your home on concrete
foundation?


Yes




No




Roof Type :


Select here
Comp Shingle
Concrete
Metal
Spanish
Clay





Your Availability :



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 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.
>>
>> So how feasible do you think it is for a frontend guy to learn Django
>> widgets from scratch to implement the same thing he can easily do from CSS
>> and JS. As a newbie backend guy, it's not easy for me either to learn
>> frontend tech to implement the same thing in so little time.
>>
>> So I tried implementing the form without using Django forms but I find it
>> hard to deal with files as there is no documentation I can look up to.
>>
>> So can we add these to the documentation or it is still advisable to use
>> Django forms?
>>
>>
>> Thanks and regards,
>> Nishant
>>
>> --
>> 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 from it, send an
>> email to django-developers+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-developers/CANNtL-Kqud7V6sk_%3DYnagzATw8eJjO9pCeDx9Za80XywXBi2tQ%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-developers/CANNtL-Kqud7V6sk_%3DYnagzATw8eJjO9pCeDx9Za80XywXBi2tQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> 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 from it, send an
> email to django-developers+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-developers/CAOGgH_-umvzoQ2cDkQFbTMU%3D6cvsxNV%2B2MNCwvr46kPCOCJ-Gw%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-developers/CAOGgH_-umvzoQ2cDkQFbTMU%3D6cvsxNV%2B2MNCwvr46kPCOCJ-Gw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CANNtL-KYchoxjB9GoQsBhHQb%2BEdhtO9FdC9D%2B%2BTmipg96JskKw%40mail.gmail.com.


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 widgets if I already
> have the form template ready?
>
> 
> 
> 
> 
> 
> 
> 
>  >
> {% csrf_token %}
> Registration form
> 
> 
> Name of Homeowner :
> 
> 
> 
> Roof Age :
>  required />
> 
> 
> 
> Email ID :
>  />
> 
> 
> Phone :
>  />
> 
> 
> Full Home Address :
>  required />
> 
> 
> Average Monthly Electric Bill Costs :
>  required />
> 
> 
> Do you have HOA?
> 
> 
> Yes
> 
> 
> 
> 
> No
> 
> 
> 
> 
> Would you also need a battery?  label>
> 
> 
> Yes
> 
> 
> 
> 
> No
> 
> 
> 
> 
> Is your home on concrete
> foundation?
> 
> 
> Yes
> 
> 
> 
> 
> No
> 
> 
> 
> 
> Roof Type :
> 
> 
> Select here
> Comp Shingle
> Concrete
> Metal
> Spanish
> Clay
> 
> 
> 
> 
> 
> Your Availability :
>  placeholder="Select Time"
> required />
> 
> 
> Upload your bill :
> 
> 
> 
>  "reset" />
>  "submit" />
> 
> 
> 
> 
> 
>
> 
>
> 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 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.
>>>
>>> So how feasible do you think it is for a frontend guy to learn Django
>>> widgets from scratch to implement the same thing he can easily do from CSS
>>> and JS. As a newbie backend guy, it's not easy for me either to learn
>>> frontend tech to implement the same thing in so little time.
>>>
>>> So I tried implementing the form without using Django forms but I find
>>> it hard to deal with files as there is no documentation I can look up to.
>>>
>>> So can we add these to the documentation or it is still advisable to use
>>> Django forms?
>>>
>>>
>>> Thanks and regards,
>>> Nishant
>>>
>>> --
>>> 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 from it, send
>>> an email to django-developers+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-developers/CANNtL-Kqud7V6sk_%3DYnagzATw8eJjO9pCeDx9Za80XywXBi2tQ%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-developers/CANNtL-Kqud7V6sk_%3DYnagzATw8eJjO9pCeDx9Za80XywXBi2tQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
>> 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 from it, send an
>> email to django-developers+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-developers/CAOGgH_-umvzoQ2cDkQFbTMU%3D6cvsxNV%2B2MNCwvr46kPCOCJ-Gw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-developers/CAOGgH_-umvzoQ2cDkQFbTMU%3D6cvsxNV%2B2MNCwvr46kPCOCJ-Gw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
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 from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CANNtL-JBsN2Fk2j4Pe--tYQbCGnBRSy%3Dk_K8EuyHYyugzyJq1A%40mail.gmail.com.


Re: Regarding Django forms

2022-09-23 Thread Nishant Sagar
That's what I wanted to know

Thank you sir

On Fri, Sep 23, 2022 at 7:42 PM Ken Whitesell 
wrote:

> Absolutely.
>
> If you're using Django, then *use* Django. Take advantage of all the
> facilities it provides you.
>
> Yes, it's a little more work on your part 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 you think it's
> a generous idea to design the whole form page using widgets if I already
> have the form template ready?
>
> 
> 
> 
> 
> 
> 
> 
>  >
> {% csrf_token %}
> Registration form
> 
> 
> Name of Homeowner :
> 
> 
> 
> Roof Age :
>  required />
> 
> 
> 
> Email ID :
>  />
> 
> 
> Phone :
>  />
> 
> 
> Full Home Address :
>  required />
> 
> 
> Average Monthly Electric Bill Costs :
>  required />
> 
> 
> Do you have HOA?
> 
> 
> Yes
> 
> 
> 
> 
> No
> 
> 
> 
> 
> Would you also need a battery?  label>
> 
> 
> Yes
> 
> 
> 
> 
> No
> 
> 
> 
> 
> Is your home on concrete
> foundation?
> 
> 
> Yes
> 
> 
> 
> 
> No
> 
> 
> 
> 
> Roof Type :
> 
> 
> Select here
> Comp Shingle
> Concrete
> Metal
> Spanish
> Clay
> 
> 
> 
> 
> 
> Your Availability :
>  placeholder="Select Time"
> required />
> 
> 
> Upload your bill :
> 
> 
> 
>  "reset" />
>  "submit" />
> 
> 
> 
> 
> 
> 
>
> 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 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.
>>>
>>> So how feasible do you think it is for a frontend guy to learn Django
>>> widgets from scratch to implement the same thing he can easily do from CSS
>>> and JS. As a newbie backend guy, it's not easy for me either to learn
>>> frontend tech to implement the same thing in so little time.
>>>
>>> So I tried implementing the form without using Django forms but I find
>>> it hard to deal with files as there is no documentation I can look up to.
>>>
>>> So can we add these to the documentation or it is still advisable to use
>>> Django forms?
>>>
>>>
>>> Thanks and regards,
>>> Nishant
>>> --
>>> 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 from it, send
>>> an email to django-developers+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-developers/CANNtL-Kqud7V6sk_%3DYnagzATw8eJjO9pCeDx9Za80XywXBi2tQ%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-developers/CANNtL-Kqud7V6sk_%3DYnagzATw8eJjO9pCeDx9Za80XywXBi2tQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
>> 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 from it, send an
>> email to django-developers+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-developers/CAOGgH_-umvzoQ2cDkQFbTMU%3D6cvsxNV%2B2MNCwvr46kPCOCJ-Gw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-developers/CAOGgH_-umvzoQ2cDkQFbTMU%3D6cvsxNV%2B2MNCwvr46kPCOCJ-Gw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> 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 from it, send an
> email to django-developers+unsubscr...@googlegroups.com.
> To view this discuss

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

2022-11-05 Thread Nishant Sagar
Hi all,

I deployed the django project to AWS ec2 instance using nginx and gunicorn
but the static file is not loading at all.

Can someone suggest where did I do wrong?

Note - I've not created Profile before deploying

Here is my settings.py file
STATIC_URL = 'static/'
STATIC_ROOT = 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 subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CANNtL-K_ntgKNAYUd8DHe8wa4bGwHO5da%3DypJfAVN%3DJHj9uCmQ%40mail.gmail.com.


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 unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/5f8db023-db26-41b8-bce3-e3bdcf67e456n%40googlegroups.com.


Re: Regarding a bug fix

2020-11-09 Thread Nishant Sagar
I'm looking at  Django Custom Field inherits ForeignKey deconstruct() 
fails  ticket number 24434 and thank you for your guidance sir. 

On Monday, November 9, 2020 at 11:15:19 PM UTC+5:30 carlton...@gmail.com 
wrote:

> Hi Nishant. Welcome. 
>
> If it’s an open ticket, it’s likely that it’s a genuine issue. Often they 
> sit for a while for want of someone motivated to pick them up. 
>
> Some are more significant, some less. If it’s something affecting you 
> personally, or if you’ve looked at it and think you can address it, and are 
> looking for a first issue 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 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 unsubscribe from this group and stop receiving emails from it, send an 
> email to django-develop...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-developers/5f8db023-db26-41b8-bce3-e3bdcf67e456n%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/django-developers/5f8db023-db26-41b8-bce3-e3bdcf67e456n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
>
>

-- 
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 from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/23c8b0d3-a3c8-48d3-ae29-cda9632e07d9n%40googlegroups.com.


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 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 from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/ee60fb96-b14d-40f1-af85-3312acc0978bn%40googlegroups.com.


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 always reply to you instantly.
>
> Looking at Markus' comment on the ticket, it's a documentation issue, so
> your task is to read through the related tickets and come to understand the
> issue, then look at the docs to see what can be clarified.
>
> The first bit there is the hard one — understanding the issue — take your
> time, have fun.
>
> If you hit specific problems, and can explain where you're at, folks can
> often input, but just pointing at an issue isn't likely to get much
> response, as all you're doing there is asking others to do work that they
> probably don't have time for. On the other hand, if you explain the issue,
> you're likely to get a response.
>
> Hope that helps you begin.
>
> Kind Regards,
>
> Carlton
>
>
> On Wednesday, 11 November 2020 at 07:30:46 UTC+1 nishan...@gmail.com
> wrote:
>
>> 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 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 from it, send an
> email to django-developers+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-developers/01cac1d6-bea1-438d-a8c7-fcbb802419a2n%40googlegroups.com
> 
> .
>

-- 
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 from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CANNtL-KkGL7mvWUTY%2Bnc_OBPYm8t6SFNwAJvHgQ-v-%3DVM-b8Vw%40mail.gmail.com.


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 from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/29966a41-80ef-4afc-a0ce-c7d798f159c5n%40googlegroups.com.


#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 server, it will 
still succeed and your next call which reads a response from memcached may 
fail unexpectedly.

pymemcached will try to catch and stop you from sending malformed inputs to 
memcached, but if you are having unexplained errors, setting noreply=False 
may help you troubleshoot the issue.


You can also look at ticket  #29887 
   -- Added a cache backend 
for pymemcache.

It says that default_noreply has been set to false to make the behaviour 
consistent with the other backends and to allow the test suite to pass 
successfully. Currently django-pymemcache only sets the 
soft-deprecated serializer and deserializer options which have been 
superseded by serde.

Note that pymemcache.serde.pickle_serde uses pickle.HIGHEST_PROTOCOL by 
default which is consistent with the configuration of 
the python-memcached backend.


As a beginner to this project what do I supposed to do now, how can I fix 
this issue?

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 from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/760a175f-2111-4cf0-95f9-e735b204a8f4n%40googlegroups.com.