Re: CreateView for non default database

2023-08-09 Thread ivan harold
Did you try what David Nugent suggested? Did it worked? On Thursday, July 27, 2023 at 6:31:33 PM UTC+8 David Nugent wrote: > Database Router is the trick for this. Django calls this function to > determine which database the transaction will use based on the type of > operation requested, so y

Re: DAILY,MONTHLY AND ANNUAL REPORTS

2023-08-09 Thread ivan harold
is this thread closed? resolved? On Saturday, July 22, 2023 at 8:08:48 AM UTC+8 Ryan Nowakowski wrote: > Check out the Sum() aggregate: > > https://docs.djangoproject.com/en/4.2/topics/db/aggregation/ > > > On July 21, 2023 12:41:48 PM CDT, Abdou KARAMBIZI > wrote: > >> Hello Friends, >> >> Ho

Re: honest reviews

2023-08-09 Thread ivan harold
Put a little more details on the site and instead of putting a screenshot on the my project page you can photoshopped an image to make it look more dynamic and enhanced. On Monday, July 31, 2023 at 9:51:49 PM UTC+8 oluwafemi damilola wrote: > It'll advice that you add some extra informations to

Re: Post multiple data

2023-08-09 Thread ivan harold
maybe this will help " from django.conf import settings class Design(models.Model): human_readable_id = models.CharField(max_length=10, default=id_generator, db_index=True) manager = models.CharField(max_length=40) worker = models.ForeignKey( settings.AUTH_USER_MODEL, on_delete=model

Re: Logout time

2023-08-09 Thread ivan harold
Maybe this will help, check out this code. def login (): login_time = time.time() def logout (): logout_time = time.time() #To get the number of seconds the user spent on the platform, #subtract login_time from logout_time On Monday, July 31, 2023 at 6:12:23 PM UTC+8 Prashanth Patelc wrote: >

Re: APP DEPLOYMENT

2023-08-09 Thread ivan harold
Maybe this will help. https://docs.djangoproject.com/ On Sunday, August 6, 2023 at 5:09:29 AM UTC+8 Dennis Kinanga wrote: > Someone to give me instructions on how to go about it please > > On Aug 6, 2023 00:07, "John McClain" wrote: > > Heroku is easy to implement and offers free tier > > On Th