Re: Language code issue - Django thinks default is en-us?

2023-07-21 Thread rezn...@gmail.com
Create a new middleware from django.utils.translation import activate from django.conf import settings class CustomLanguageMiddleware: def __init__(self, get_response): self.get_response = get_response def __call__(self, request): # Read the language preference from the

Re: Internship and job in python and Django related

2023-07-21 Thread Opeyemi Ajayi
I am Christiana Ajayi from Nigeria, but I am currently based in Rwanda and Nigeria. I have just concluded development of a realtime dashboard using Django, Reactjs, HTML, CSS, D3, PostgreSQL deployed on AWS cloud. I also have an engineering background and hold a Masters degree in Engineering A

Re: Internship and job in python and Django related

2023-07-21 Thread Emmanuel Seth
Svp parlez en français 🙏🙏🙏 Le ven. 21 juil. 2023 à 15:14, Opeyemi Ajayi < opeyemichristiana.aj...@gmail.com> a écrit : > I am Christiana Ajayi from Nigeria, but I am currently based in Rwanda and > Nigeria. I have just concluded development of a realtime dashboard using > Django, Reactjs, HTML,

Re: Internship and job in python and Django related

2023-07-21 Thread Vishesh Mangla
You can use fixtures to store json data to your db but it should be in a specific format based on your model. On Fri, 21 Jul, 2023, 22:44 Emmanuel Seth, wrote: > Svp parlez en français 🙏🙏🙏 > > > Le ven. 21 juil. 2023 à 15:14, Opeyemi Ajayi < > opeyemichristiana.aj...@gmail.com> a écrit : > >> I

DAILY,MONTHLY AND ANNUAL REPORTS

2023-07-21 Thread Abdou KARAMBIZI
Hello Friends, How can I get weekly,Monthly and annual reports? from the following model. I want to get the total amount paid in the week,month and year class Payments(models.Model): id = models.AutoField(primary_key = True) amount = models.IntegerField() paidon = models.DateField(au

Re: DAILY,MONTHLY AND ANNUAL REPORTS

2023-07-21 Thread Prashanth Patelc
Write a condition based on paidon date filed like filter date , If date is today get last 7days report and get last month report. On Fri, Jul 21, 2023, 11:12 PM Abdou KARAMBIZI wrote: > Hello Friends, > > How can I get weekly,Monthly and annual reports? from the following model. > I want to get