Re: databases

2023-12-01 Thread Madhusudhan Reddy
Bro please explain the scenario and the problem. Nobody will not give proper answer until you proper details. On Fri, 1 Dec 2023 at 7:52 PM, Karim Dahman wrote: > Hi, > how can create python script in terminal to update the data from old > databases into new databases automaticaly > > -- > You r

Re: Timezone issue in when storing in DB

2023-08-16 Thread Madhusudhan Reddy
jango.utils.timezone.activate> > available > in `django.utils.timezone` to get the current time in your preferred > timezone. > > I hope this answers your question. > > Best regards > Reuben Sunday <https://reubensunday.com/> > > On Wed, Aug 16, 2023 at 3:35 AM Madhusudhan Red

Timezone issue in when storing in DB

2023-08-15 Thread Madhusudhan Reddy
Hi All, I am trying to store the date with the timezone. for example, my servers are in Mumbai, when my servers are trying to get the time of America/Detroit. it is not able to get proper time Here is the snippet and details [image: Screenshot from 2023-08-16 08-00-21.png] def get_created_at(time

Re: Logout time

2023-07-28 Thread Madhusudhan Reddy
for better understanding [image: Screenshot from 2023-07-28 20-18-37.png] On Fri, 28 Jul 2023 at 20:15, Madhusudhan Reddy wrote: > To get Logout time based on login time, > > login time = some thing > > logout time = login time + 8 hours > > use datetime timed

Re: Logout time

2023-07-28 Thread Madhusudhan Reddy
To get Logout time based on login time, login time = some thing logout time = login time + 8 hours use datetime timedelta module in python, >>> CODE <<< from datetime import datetime, timedelta login_time = datetime.now() logout_time = login_time + timedelta(hours=8) >>> CODE <<< On Fr

Re: Logout time

2023-07-28 Thread Madhusudhan Reddy
Please describe the problem properly bro. we are not understanding On Fri, 28 Jul 2023 at 20:05, Prashanth Patelc wrote: > Hi all, > > How to get logout time based on login time in python? > > I'm storing hour in one column > Eg ; hour > 8 > Based on 8 Calculate logout time > > My lo

Re: Looking for experienced Django backend engineer

2022-07-02 Thread Madhusudhan Reddy
Hi Tony, Good to hear from you and you idea is great, I have an experience of 2+ in Django and python But I was occupied to another company but I can work on weekends(full time) an weekdays (part time) https://www.linkedin.com/in/msreddygone You can checkout my previous company products I’ve work

Re: The SECRET_KEY setting must not be empty - os.environ.get('SECRET_KEY')

2022-02-27 Thread Madhusudhan Reddy
Secret key will be in settings.py file and you have to import that and use… On Mon, 28 Feb 2022 at 1:48 AM, Valdinia - Office wrote: > On W10 I defined an environment variable: SECRET_KEY > In shell I can read the key: > > *>>> import os* > *>>> os.environ.get('SECRET_KEY')* > 'mysecretkey...' >

DB design(models), #tags, or labels, folders

2022-02-16 Thread Madhusudhan Reddy
Hi Django users, I have a requirement to design and develop labels for mailing and ticketing software. you can call whatever you want to labels or tags or folders or hashtags but how to design database for reusable case of designing database in django tags For example, 1. Mails 2. Ticketing. 3..

Re: Database design

2022-01-23 Thread Madhusudhan Reddy
Ohh you want create custom fields in forms Take input, select, textarea tags, make them their own fields but save all of these in fields in one table with types and max values all of the attributes of tags Finally show then what they chosen On Sun, 23 Jan 2022 at 2:28 PM, Prashanth Patelc wro