Need to trigger action on 4th Saturday of the month

2023-07-25 Thread M Cain
User application permits registration for upcoming events. User wants the registration page to be open on 4th Saturday of every month at 9am ET as the events are very popular with limited capacity and made available on first come first serve basis. Django application is deployed on Heroku. H

Re: Need to trigger action on 4th Saturday of the month

2023-07-25 Thread Ross Meredith
No need to involve anything asynchronous, if I understand you correctly. Just check when the request is made whether it's the right time. If so process the registration, otherwise show the other page to indicate it's the wrong time. Ross On Tue, Jul 25, 2023 at 7:13 PM M Cain wrote: > User app

Re: Need to trigger action on 4th Saturday of the month

2023-07-25 Thread Chetan Ganji
Hi Mr Cain, This would make more sense to me! https://django-celery-beat.readthedocs.io/en/latest/ You could create background tasks to create background tasks that run at any specific time ;-) AFAIK, this solution is as good as it can get! Thanks! Regards, Chetan Ganji +91-900-483-4183 ganji.c

Re: Need to trigger action on 4th Saturday of the month

2023-07-25 Thread Sebastian Jung
Very cool solution chetan. I think i should try it. Thank you Chetan Ganji schrieb am Di., 25. Juli 2023, 22:56: > Hi Mr Cain, > > This would make more sense to me! > https://django-celery-beat.readthedocs.io/en/latest/ > > You could create background tasks to create background tasks that run at

Re: Need to trigger action on 4th Saturday of the month

2023-07-25 Thread Mike Dewhirst
On 25/07/2023 10:47 pm, M Cain wrote: User application permits registration for upcoming events.  User wants the registration page to be open on 4th Saturday of every month at 9am ET as the events are very popular with limited capacity and made available on first come first serve basis. Djang

CreateView for non default database

2023-07-25 Thread Muhammad Juwaini Abdul Rahman
Hi all, I have two different databases as below: DATABASES = { 'tvet': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': BASE_DIR / 'db.sqlite3', }, 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': 'jpk', 'USER': 'jpkuser', 'PASSWORD': 'jpkpassword', 'HOST': 'localhost', # Or an IP Addr