Re: SChedule email

2021-07-01 Thread Luis Zárate
You can create a custom command using this doc https://docs.djangoproject.com/en/3.1/howto/custom-management-commands/ Now, you can call it like python manage.py mycustomcommandname so in Linux environment you can use crontab (with crontab -e) to execute the command. El jue, 1 jul 2021 a las

Re: ValueError: Field 'stufees' expected a number but got 'None'.

2021-07-01 Thread SKYLINE TV
kindly add the screenshort to enable me see your model On Thursday, July 1, 2021 at 10:58:40 PM UTC+1 abeer.e...@gmail.com wrote: > Hi Waqar, > > Could you add your models.py and a screenshot or copy of the error you are > observing? > > Thanks! > > On Thu, Jul 1, 2021 at 5:31 PM waqar khan

Re: ValueError: Field 'stufees' expected a number but got 'None'.

2021-07-01 Thread Abeer Eltanawy
Hi Waqar, Could you add your models.py and a screenshot or copy of the error you are observing? Thanks! On Thu, Jul 1, 2021 at 5:31 PM waqar khan wrote: > I have create model class and run success fully > But Issues add field like stufees , > stufess=models.FloatField(), > right value default

Re: Sorting price and discount price (urgent)

2021-07-01 Thread SKYLINE TV
the word urgen is bad, do lot of google boss On Thursday, July 1, 2021 at 1:28:13 PM UTC+1 arit...@gmail.com wrote: > Hi, > > I will avoid using 'urgent'. The problem is as described above, I want to > sort my products in ascending or descending price order which will include > the discount

how to develop crypto investment site with django

2021-07-01 Thread SKYLINE TV
hello i am new in django i just finish building my first blog and am still learning to enhance myself, currently i use php for all my projects. but i needed an advenge porgarmining language to move to the next level, that is why i pick up django. my aim is to develop an investment site

Re: SChedule email

2021-07-01 Thread SKYLINE TV
*You can check out celery and how to integrate it with django. Once done, task scheduling is easy,first add your gmail configuration in settings.py as follows:* *EMAIL_BACKEND = 'django_smtp_ssl.SSLEmailBackend' * *EMAIL_USE_TLS = True * *EMAIL_HOST = 'smtp.gmail.com' * *EMAIL_HOST_USER =

Re: HELP WITH INSTALLING AND RUNNING PGAGENT AS A DAEMON

2021-07-01 Thread Kasper Laudrup
On 01/07/2021 17.49, Sunday Iyanu Ajayi wrote: > > Please I need guidance in setting up Pgagent as a daemon on my ubuntu https://gist.github.com/v4r15/b246b81ec09c488ebecac4610d975456 Kind regards, Kasper Laudrup -- You received this message because you are subscribed to the Google Groups

HELP WITH INSTALLING AND RUNNING PGAGENT AS A DAEMON

2021-07-01 Thread Sunday Iyanu Ajayi
Dear Team, Please I need guidance in setting up Pgagent as a daemon on my ubuntu *AJAYI Sunday * (+234) 806 771 5394 *sunnexaj...@gmail.com * -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving

ValueError: Field 'stufees' expected a number but got 'None'.

2021-07-01 Thread waqar khan
I have create model class and run success fully But Issues add field like stufees , stufess=models.FloatField(), right value default , as soon as reply me -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

Re: SChedule email

2021-07-01 Thread divya murugulla
can you please send me some code sample that i can achieve through settings On Thursday, July 1, 2021 at 6:56:39 PM UTC+5:30 sachinb...@gmail.com wrote: > look for the croon jobs or schedulers that may work, > > thank you > Sachin b.g > > On Thu, 1 Jul 2021 at 18:45, divya murugulla wrote: > >>

Re: SChedule email

2021-07-01 Thread sachinbg sachin
look for the croon jobs or schedulers that may work, thank you Sachin b.g On Thu, 1 Jul 2021 at 18:45, divya murugulla wrote: > i cannot use celery suggest me something different > > On Thursday, July 1, 2021 at 6:27:51 PM UTC+5:30 aadil1...@gmail.com > wrote: > >> Use *Django-celery* >> >> On

Re: SChedule email

2021-07-01 Thread divya murugulla
i cannot use celery suggest me something different On Thursday, July 1, 2021 at 6:27:51 PM UTC+5:30 aadil1...@gmail.com wrote: > Use *Django-celery* > > On Thu, 1 Jul, 2021, 6:23 PM divya murugulla, > wrote: > >> HI, >> >> I wanted to schedule a email every jan and aug 6 monthly basis without

Re: SChedule email

2021-07-01 Thread Julio Cojom
I remember a python library called django-cron, it's stable in Linux environments El jue., 1 de julio de 2021 6:54 a. m., divya murugulla < divyamurugu...@gmail.com> escribió: > HI, > > I wanted to schedule a email every jan and aug 6 monthly basis without > celery using settings.py. Can anyone

Re: SChedule email

2021-07-01 Thread Aadil Rashid
Use *Django-celery* On Thu, 1 Jul, 2021, 6:23 PM divya murugulla, wrote: > HI, > > I wanted to schedule a email every jan and aug 6 monthly basis without > celery using settings.py. Can anyone help? > > once in every 6months mail should be triggered > > -- > You received this message because

SChedule email

2021-07-01 Thread divya murugulla
HI, I wanted to schedule a email every jan and aug 6 monthly basis without celery using settings.py. Can anyone help? once in every 6months mail should be triggered -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this

Schedule settings

2021-07-01 Thread divya murugulla
schedule concept -- 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 email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit

Re: Sorting price and discount price (urgent)

2021-07-01 Thread Aritra Ray
Hi, I will avoid using 'urgent'. The problem is as described above, I want to sort my products in ascending or descending price order which will include the discount price too if it exists. Right now, if there are two products, A and B; A being ₹900 and B being ₹1200 too but after discount, ₹

Re: Sorting price and discount price (urgent)

2021-07-01 Thread Shailesh Yadav
yes, I agree with Kasper please don't use urgent OR very urgent, and please describe your questions in detail. from where you getting this *discount_price* and why you using the *price* key for two different values. (can you check by printing *discount_price*) fields={ 'price':

Re: Django

2021-07-01 Thread Théodore KOSSI
okay thanks you very much Le jeu. 1 juil. 2021 à 08:56, Kasper Laudrup a écrit : > On 7/1/21 9:14 AM, Théodore KOSSI wrote: > > How can I do it ? > > > > The exact same way you normally pass arguments to constructors. > > Kind regards, > > Kasper Laudrup > > -- > You received this message

paginate_by attribute not giving error.

2021-07-01 Thread sunday honesty
Hello guys, it's been a while here. Need some help pls. I had to override my ListView get_querryset() method to query my posts according to a given category. But it seem my context is not a list of objects again as I get this error message: "TypeError: unhashable type: 'slice' " when I try to

Re: Sorting price and discount price (urgent)

2021-07-01 Thread Aritra Ray
I tried to describe the problem but till my capability and it is urgent, not just for increasing the possibility of getting help. Thank you for your advice and help. On Thu, 1 Jul, 2021, 1:30 pm Kasper Laudrup, wrote: > On 7/1/21 8:03 AM, Aritra Ray wrote: > > I am facing a problem in including

Re: Sorting price and discount price (urgent)

2021-07-01 Thread Kasper Laudrup
On 7/1/21 8:03 AM, Aritra Ray wrote: I am facing a problem in including the discount_price into consideration when sorting price through the products. Kindly help me to do so. The below attached files are filters.py, views.py and  models.py. Instead of writing "urgent" in hope it will

Re: Django

2021-07-01 Thread Kasper Laudrup
On 7/1/21 9:14 AM, Théodore KOSSI wrote: How can I do it ? The exact same way you normally pass arguments to constructors. Kind regards, Kasper Laudrup -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and

Django security releases issued: 3.2.5 and 3.1.13

2021-07-01 Thread Mariusz Felisiak
Details are available on the Django project weblog: https://www.djangoproject.com/weblog/2021/jul/01/security-releases/ -- 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

Re: In django you can either obtain a `csrftoken` from a cookie or the form can generate a nonce `csrftoken`. How does django validate both?

2021-07-01 Thread Patrice Chaula
Okay, thank you Antonis. I wanted to have a clear understanding how it works. On Thu, 1 Jul 2021 at 07:54, Antonis Christofides < anto...@antonischristofides.com> wrote: > What if I can copy that cookie (samesite) in developer tools from > legitimate-site.com and create a new cookie for

Re: Django

2021-07-01 Thread Théodore KOSSI
How can I do it ? Le mar. 29 juin 2021 à 13:00, Kasper Laudrup a écrit : > On 6/29/21 1:13 PM, Théodore KOSSI wrote: > > Can I give arguments to HtpResponseRedirect()? > > > > Yes. > > Kind regards, > > Kasper Laudrup > > -- > You received this message because you are subscribed to the Google

Sorting price and discount price (urgent)

2021-07-01 Thread Aritra Ray
I am facing a problem in including the discount_price into consideration when sorting price through the products. Kindly help me to do so. The below attached files are filters.py, views.py and models.py. Regards, Aritra class ProductFilter(django_filters.FilterSet): sort = OrderingFilter(