Re: Management command scheduling options

2023-10-25 Thread Mike Dewhirst

On 25/10/2023 11:49 pm, Adam Stein wrote:

On Wed, 2023-10-25 at 08:24 -0400, Larry Martell wrote:
On Wed, Oct 25, 2023 at 5:35 AM Mike Dewhirst  
wrote:


Ahmedrufai

I looked at APScheduler and like Celery it is too much of a 
sledgehammer for my tiny problem.


I ended up using cron to launch the command each day. It works 
perfectly.


My task now is to find a way to automate establishment of that 
crontab entry when the project is migrated to a new server.


How are new servers deployed? How many new servers will be deployed?
If it's a one off thing you are doing manually, you just have to
remember to do it. If there are many, then you should use a tool like
terraform or octopus, or something similar and have that do it.



I use django-crontab myself for cron jobs. That way, I can add or 
update easily during deployment. Maybe you can make use of that so you 
can keep everything in your project.


This looks excellent, Adam. Thanks. I'll report back in due course.

Mike




--
Adam (a...@csh.rit.edu)

--
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 
https://groups.google.com/d/msgid/django-users/6433ead4bf666e3ef52ac742df731e0cf7c66743.camel%40csh.rit.edu 
.



--
Signed email is an absolute defence against phishing. This email has
been signed with my private key. If you import my public key you can
automatically decrypt my signature and be sure it came from me. Your
email software can handle signing.

--
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 
https://groups.google.com/d/msgid/django-users/bc18ce9a-8ac8-41a6-adce-c36dbe9efee4%40dewhirst.com.au.


OpenPGP_signature.asc
Description: OpenPGP digital signature


Re: Management command scheduling options

2023-10-25 Thread Mike Dewhirst

On 25/10/2023 11:24 pm, Larry Martell wrote:

On Wed, Oct 25, 2023 at 5:35 AM Mike Dewhirst  wrote:

Ahmedrufai

I looked at APScheduler and like Celery it is too much of a sledgehammer for my 
tiny problem.

I ended up using cron to launch the command each day. It works perfectly.

My task now is to find a way to automate establishment of that crontab entry 
when the project is migrated to a new server.

How are new servers deployed? How many new servers will be deployed?
If it's a one off thing you are doing manually, you just have to
remember to do it.


It is a one-off but I'm assuming it will be someone else needing to do 
it rather than me.



  If there are many, then you should use a tool like
terraform or octopus, or something similar and have that do it.




--
Signed email is an absolute defence against phishing. This email has
been signed with my private key. If you import my public key you can
automatically decrypt my signature and be sure it came from me. Your
email software can handle signing.

--
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 
https://groups.google.com/d/msgid/django-users/0a765bc2-ab30-4925-b43f-e31ae2c8b13b%40dewhirst.com.au.


OpenPGP_signature.asc
Description: OpenPGP digital signature


Dynamic creation of pages

2023-10-25 Thread Raymond N
Am working on a website using django and i want to create a dropdown list
on the navigation bar such that when i add a title in the admin its added
here.

This title should also automatically be a link to a page populated with
data attached to that specific title

Does anyone know how i can do this??

Thanks,
Raymond

-- 
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 
https://groups.google.com/d/msgid/django-users/CAJpDcBRHUKy9V_g-n_o5cd71LKqUPAEfjJxD041%3DEqeaRPmqyA%40mail.gmail.com.


Re: Learning Django for beginners

2023-10-25 Thread SUNIL PATEL
https://tutorial.djangogirls.org/en/

On Wed, Oct 25, 2023 at 10:44 PM Janet Anastacia 
wrote:

> I'm new to Django development, I kindly ask for the best free  websites to
> learn Django for beginners in 2023. I have tried to learn from different
> websites but I don't seem to grab anything.
>
> On Wed, Oct 25, 2023, 3:49 PM Adam Stein  wrote:
>
>> On Wed, 2023-10-25 at 08:24 -0400, Larry Martell wrote:
>>
>> On Wed, Oct 25, 2023 at 5:35 AM Mike Dewhirst 
>> wrote:
>>
>>
>> Ahmedrufai
>>
>> I looked at APScheduler and like Celery it is too much of a sledgehammer
>> for my tiny problem.
>>
>> I ended up using cron to launch the command each day. It works perfectly.
>>
>> My task now is to find a way to automate establishment of that crontab
>> entry when the project is migrated to a new server.
>>
>>
>> How are new servers deployed? How many new servers will be deployed?
>> If it's a one off thing you are doing manually, you just have to
>> remember to do it. If there are many, then you should use a tool like
>> terraform or octopus, or something similar and have that do it.
>>
>>
>> I use django-crontab myself for cron jobs. That way, I can add or update
>> easily during deployment. Maybe you can make use of that so you can keep
>> everything in your project.
>>
>> --
>>
>> Adam (a...@csh.rit.edu)
>>
>>
>> --
>> 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
>> https://groups.google.com/d/msgid/django-users/6433ead4bf666e3ef52ac742df731e0cf7c66743.camel%40csh.rit.edu
>> 
>> .
>>
> --
> 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
> https://groups.google.com/d/msgid/django-users/CAA_zVTHRM9W1UQeWnn2fFGtcusukPE09mh9tg55YAxiyFs3QEA%40mail.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 emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CADarRE6ieas4aJ5p4ozTEtcZXH%2B62fG%3DbN6tj%2Bxd8ts7Ghxk%3DA%40mail.gmail.com.


Re: Learning Django for beginners

2023-10-25 Thread Janet Anastacia
I'm new to Django development, I kindly ask for the best free  websites to
learn Django for beginners in 2023. I have tried to learn from different
websites but I don't seem to grab anything.

On Wed, Oct 25, 2023, 3:49 PM Adam Stein  wrote:

> On Wed, 2023-10-25 at 08:24 -0400, Larry Martell wrote:
>
> On Wed, Oct 25, 2023 at 5:35 AM Mike Dewhirst 
> wrote:
>
>
> Ahmedrufai
>
> I looked at APScheduler and like Celery it is too much of a sledgehammer
> for my tiny problem.
>
> I ended up using cron to launch the command each day. It works perfectly.
>
> My task now is to find a way to automate establishment of that crontab
> entry when the project is migrated to a new server.
>
>
> How are new servers deployed? How many new servers will be deployed?
> If it's a one off thing you are doing manually, you just have to
> remember to do it. If there are many, then you should use a tool like
> terraform or octopus, or something similar and have that do it.
>
>
> I use django-crontab myself for cron jobs. That way, I can add or update
> easily during deployment. Maybe you can make use of that so you can keep
> everything in your project.
>
> --
>
> Adam (a...@csh.rit.edu)
>
>
> --
> 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
> https://groups.google.com/d/msgid/django-users/6433ead4bf666e3ef52ac742df731e0cf7c66743.camel%40csh.rit.edu
> 
> .
>

-- 
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 
https://groups.google.com/d/msgid/django-users/CAA_zVTHRM9W1UQeWnn2fFGtcusukPE09mh9tg55YAxiyFs3QEA%40mail.gmail.com.


Re: Hire remote Python codeer

2023-10-25 Thread Emmanuel Uwaifo
I am highly interested in this position. I have been looking for an
opportunity like this. With my coding experience since 2012, I deem myself
fit for this position. I have been unemployed for quite some time but have
been coding and working on projects. My strongest language is C, Python,
and Java.

As for the salary range, I am pretty ok with it.

Attached is my resume and cover letter for your reference. I look forward
to hearing from you.

Regards,
Emmanuel Uwaifo

On Tue, 24 Oct 2023, 17:29 许三高,  wrote:

> Hire remote Python codeer
>
> We are currently looking for a talented and experienced remote Python
> programmer to join our team. If you have at least three years of work
> experience, the ability to independently develop front-end and back-end
> solutions, strong familiarity with MongoDB, the ability to write automation
> scripts, and proficiency in Linux system maintenance, then we want to hear
> from you .
>
> Require:
>
> At least three years of Python programming experience.
> Proficient in developing front-end and back-end solutions independently.
> Very familiar with MongoDB database administration.
> Ability to write automation scripts to streamline processes.
> Proficient in Linux system maintenance and troubleshooting.
> Have experience in developing web development frameworks flask and django
> salary:
>
> Salary range: $1000-$1500 per month.
> Starting salary: $1,000 per month.
> The probation period is three months, and the salary can be adjusted based
> on work performance.
> Maximum monthly salary is capped at $1,500 based on development skills and
> performance ratings.
> telegram: https://t.me/easychat3
>
> --
> 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
> https://groups.google.com/d/msgid/django-users/ec504c58-3352-4ade-a59c-876038dd94fan%40googlegroups.com
> 
> .
>

-- 
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 
https://groups.google.com/d/msgid/django-users/CADXqmSY26UfTSUcpr3ZBmF2SugQvXEZm_aX6xE-mVd5kCC%2BEag%40mail.gmail.com.


EnomaResume.docx
Description: MS-Word 2007 document


CoverLetter-2.docx
Description: MS-Word 2007 document


Re: Hiring Django Developer with Front-end skills

2023-10-25 Thread Emmanuel Yusuf
I am interested in this position and will be glad to have this opportunity,
below are my details

  Emmanuel Resume.pdf



On Wed, Oct 25, 2023, 2:03 AM Hafiza Nafeesa Asif 
wrote:

> I am interested in this position
>
> On Tue, 24 Oct 2023, 1:59 am Gabriel Molocea, 
> wrote:
>
>> Looking to hire a fullstack developer for an ongoing project. The project
>> is a crowdsourcing platform running on django 3.
>>
>> Current app: https://app.zignative.com , I want to add new features, fix
>> bugs and to change the UI to be like this:
>> https://www.figma.com/file/fzLCaCw8FL4rZHrkJ8FZnP/Zignative-V2?type=design=0%3A1=design=WumamG5ko45UFwGW-1
>>
>> Rate: 20-22$/hour
>>
>> Send me your CV/linkedin, and we can schedule an intro meeting.
>>
>> --
>> 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
>> https://groups.google.com/d/msgid/django-users/eece51b3-ce51-40db-9b44-fa42baa7bf10n%40googlegroups.com
>> 
>> .
>>
> --
> 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
> https://groups.google.com/d/msgid/django-users/CAO5ZLjWWd4RnHBQ-dEGpXNEL0o9kin5fGUuZAJoRV8w-Fg1hHA%40mail.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 emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CALXwe2t9Kf8LaJK5nf3boS%3DqHaKyGt5FkQzyiTuNjBjdpu44-Q%40mail.gmail.com.


Re: Hire remote Python codeer

2023-10-25 Thread 许三高
hello pls leave ur telegram or contact me https://t.me/easychat3

在2023年10月25日星期三 UTC+8 07:31:20 写道:

> I am a python programmer with morethan 5 years experience. Looking forward 
> to hear from you.thank you
>
> On Tue, Oct 24, 2023, 17:30 许三高  wrote:
>
>> Hire remote Python codeer
>>
>> We are currently looking for a talented and experienced remote Python 
>> programmer to join our team. If you have at least three years of work 
>> experience, the ability to independently develop front-end and back-end 
>> solutions, strong familiarity with MongoDB, the ability to write automation 
>> scripts, and proficiency in Linux system maintenance, then we want to hear 
>> from you .
>>
>> Require:
>>
>> At least three years of Python programming experience.
>> Proficient in developing front-end and back-end solutions independently.
>> Very familiar with MongoDB database administration.
>> Ability to write automation scripts to streamline processes.
>> Proficient in Linux system maintenance and troubleshooting.
>> Have experience in developing web development frameworks flask and django
>> salary:
>>
>> Salary range: $1000-$1500 per month.
>> Starting salary: $1,000 per month.
>> The probation period is three months, and the salary can be adjusted 
>> based on work performance.
>> Maximum monthly salary is capped at $1,500 based on development skills 
>> and performance ratings.
>> telegram: https://t.me/easychat3
>>
>> -- 
>>
> 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...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/ec504c58-3352-4ade-a59c-876038dd94fan%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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 
https://groups.google.com/d/msgid/django-users/f7424c4f-0d38-429d-9771-3ab2fdc1f2a9n%40googlegroups.com.


Re: Hire remote Python codeer

2023-10-25 Thread Emmanuel Yusuf
I am interested in this position and will be glad if I can be considered
for this position

On Wed, Oct 25, 2023, 12:31 AM Rabil Abdullahi  wrote:

> I am a python programmer with morethan 5 years experience. Looking forward
> to hear from you.thank you
>
> On Tue, Oct 24, 2023, 17:30 许三高  wrote:
>
>> Hire remote Python codeer
>>
>> We are currently looking for a talented and experienced remote Python
>> programmer to join our team. If you have at least three years of work
>> experience, the ability to independently develop front-end and back-end
>> solutions, strong familiarity with MongoDB, the ability to write automation
>> scripts, and proficiency in Linux system maintenance, then we want to hear
>> from you .
>>
>> Require:
>>
>> At least three years of Python programming experience.
>> Proficient in developing front-end and back-end solutions independently.
>> Very familiar with MongoDB database administration.
>> Ability to write automation scripts to streamline processes.
>> Proficient in Linux system maintenance and troubleshooting.
>> Have experience in developing web development frameworks flask and django
>> salary:
>>
>> Salary range: $1000-$1500 per month.
>> Starting salary: $1,000 per month.
>> The probation period is three months, and the salary can be adjusted
>> based on work performance.
>> Maximum monthly salary is capped at $1,500 based on development skills
>> and performance ratings.
>> telegram: https://t.me/easychat3
>>
>> --
>> 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
>> https://groups.google.com/d/msgid/django-users/ec504c58-3352-4ade-a59c-876038dd94fan%40googlegroups.com
>> 
>> .
>>
> --
> 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
> https://groups.google.com/d/msgid/django-users/CAO2Ykc6Fr42C1Aq5b6UUzh0EuEY1vahRMwgLXZcxO6KZ8pxgPg%40mail.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 emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CALXwe2tFCBSVPhw7H9f6%2BZqjFcySJqJOZb9C-z8N_7usJjfgzw%40mail.gmail.com.


Re: Hire remote Python codeer

2023-10-25 Thread 许三高
At present, I can only provide what I can afford. If you have a good job, 
remember to introduce it to people in the forum.

在2023年10月25日星期三 UTC+8 06:37:59 写道:

> I am interested, however, I am more like 360k per year. I can do entry 
> work as well.
>
> On Tue, Oct 24, 2023 at 11:29 AM 许三高  wrote:
>
>> Hire remote Python codeer
>>
>> We are currently looking for a talented and experienced remote Python 
>> programmer to join our team. If you have at least three years of work 
>> experience, the ability to independently develop front-end and back-end 
>> solutions, strong familiarity with MongoDB, the ability to write automation 
>> scripts, and proficiency in Linux system maintenance, then we want to hear 
>> from you .
>>
>> Require:
>>
>> At least three years of Python programming experience.
>> Proficient in developing front-end and back-end solutions independently.
>> Very familiar with MongoDB database administration.
>> Ability to write automation scripts to streamline processes.
>> Proficient in Linux system maintenance and troubleshooting.
>> Have experience in developing web development frameworks flask and django
>> salary:
>>
>> Salary range: $1000-$1500 per month.
>> Starting salary: $1,000 per month.
>> The probation period is three months, and the salary can be adjusted 
>> based on work performance.
>> Maximum monthly salary is capped at $1,500 based on development skills 
>> and performance ratings.
>> telegram: https://t.me/easychat3
>>
>> -- 
>> 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...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/ec504c58-3352-4ade-a59c-876038dd94fan%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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 
https://groups.google.com/d/msgid/django-users/49f24891-1e9c-429b-8212-956b2fce3455n%40googlegroups.com.


Re: Management command scheduling options

2023-10-25 Thread Adam Stein
On Wed, 2023-10-25 at 08:24 -0400, Larry Martell wrote:
> On Wed, Oct 25, 2023 at 5:35 AM Mike Dewhirst 
> wrote:
> > 
> > Ahmedrufai
> > 
> > I looked at APScheduler and like Celery it is too much of a
> > sledgehammer for my tiny problem.
> > 
> > I ended up using cron to launch the command each day. It works
> > perfectly.
> > 
> > My task now is to find a way to automate establishment of that
> > crontab entry when the project is migrated to a new server.
> 
> How are new servers deployed? How many new servers will be deployed?
> If it's a one off thing you are doing manually, you just have to
> remember to do it. If there are many, then you should use a tool like
> terraform or octopus, or something similar and have that do it.
> 

I use django-crontab myself for cron jobs. That way, I can add or
update easily during deployment. Maybe you can make use of that so you
can keep everything in your project.

-- 
Adam (a...@csh.rit.edu)

-- 
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 
https://groups.google.com/d/msgid/django-users/6433ead4bf666e3ef52ac742df731e0cf7c66743.camel%40csh.rit.edu.


Re: Management command scheduling options

2023-10-25 Thread Larry Martell
On Wed, Oct 25, 2023 at 5:35 AM Mike Dewhirst  wrote:
>
> Ahmedrufai
>
> I looked at APScheduler and like Celery it is too much of a sledgehammer for 
> my tiny problem.
>
> I ended up using cron to launch the command each day. It works perfectly.
>
> My task now is to find a way to automate establishment of that crontab entry 
> when the project is migrated to a new server.

How are new servers deployed? How many new servers will be deployed?
If it's a one off thing you are doing manually, you just have to
remember to do it. If there are many, then you should use a tool like
terraform or octopus, or something similar and have that do it.

-- 
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 
https://groups.google.com/d/msgid/django-users/CACwCsY5xFsBK7Joe4U6-itLv7%2BSrMQ0OyQ1VJ%3DscFvTmepsPbw%40mail.gmail.com.


JOIN

2023-10-25 Thread Abdou KARAMBIZI
Hello group members,

How can I get result containing any information from both 3 models

eg.
 Customer|contact  | room number|room price| business|
-
---
John Doe |+1 989898989|12 | 1000|restaurant


class Room(models.Model):
room_id = models.AutoField(primary_key=True)
room_number = models.CharField(max_length = 200)
room_square_meters = models.IntegerField()
room_price = models.IntegerField()

def __int__(self):
return  self.room_number


class Customer(models.Model):
customer_id = models.AutoField(primary_key=True)
national_id = models.CharField(max_length=200)
first_name = models.CharField(max_length=200)
last_name = models.CharField(max_length=200)
contact_number = models.CharField(max_length=200)
customer_status = models.BooleanField(default=True)

def __str__(self):
return self.first_name+' '+self.last_name

class CustomerRooms(models.Model):
room = models.ForeignKey(Room,on_delete=models.CASCADE)
customer  = models.ForeignKey(Customer,on_delete=models.CASCADE)
business = models.CharField(max_length = 200)

-- 
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 
https://groups.google.com/d/msgid/django-users/CABnE44ym3kYFaKV0xRhHAKRWP9yrG8F%3DX_oPKWPOOLt_FpWtAQ%40mail.gmail.com.


Re: Management command scheduling options

2023-10-25 Thread Mike Dewhirst
AhmedrufaiI looked at APScheduler and like Celery it is too much of a 
sledgehammer for my tiny problem. I ended up using cron to launch the command 
each day. It works perfectly.My task now is to find a way to automate 
establishment of that crontab entry when the project is migrated to a new 
server.CheersMike--(Unsigned mail from my phone)
 Original message From: Ahmedrufai Otuoze 
 Date: 24/10/23  00:11  (GMT+10:00) To: 
django-users@googlegroups.com Subject: Re: Management command scheduling 
options Hi Mike,I've implemented something similar to what you mentioned 
lately. I used this Python package called APScheduler to schedule and run 
database intensive queries behind the scene and then cache the result for my 
users to fetch from making their experience super fast.The APScheduler can be 
configured to run at any interval daily, weekly, monthly or any customized 
interval you require. It's a game changer and a quick win for Windows based OS 
as they don't support the use of Celery or any other Linux based schedulers 
without WSL.Do let me know if you're interested in my implementation, I'm open 
to show you.Regards On Mon, Oct 23, 2023, 11:09 AM Mike Dewhirst 
 wrote:

  


  
  
Django docs suggest cron or Windows scheduler for running management
commands.

I would like instead to build an internal Django based scheduler -
because after migrating to a new server, setting up the new cron
task will be forgotten. 

Is there a daily (approximately) event in a Django project I can
hook into and test the date? 

The task is somewhat database intensive and needs to run quarterly
for some users, monthly for most and weekly for others depending on
their preferences. 

Ideas anyone?

Thanks

Mike

-- 
Signed email is an absolute defence against phishing. This email has
been signed with my private key. If you import my public key you can
automatically decrypt my signature and be sure it came from me. Your
email software can handle signing.

  




-- 
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 
https://groups.google.com/d/msgid/django-users/7b29b24b-64f0-4f93-9a43-5d8f5e242b57%40dewhirst.com.au.




-- 
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 
https://groups.google.com/d/msgid/django-users/CAA50JbfV1VXkpeoXLEcsOp2j0WeXM5dfKH9BbQKLAeipnOhvsQ%40mail.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 emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/6538e144.170a0220.b001a.862aSMTPIN_ADDED_MISSING%40gmr-mx.google.com.


Re: Form does not import current data from data base

2023-10-25 Thread Stefan Kusmierz
Hi Migui, 
I'm enchanted to receive such a quick answer.
1. It's MyForm1_2_3_4() because it's the answer to the first Get request 
while the page is opened
2. Why would I try to save the form to the data base?
Best regards, Stefan


Migui Galan schrieb am Mittwoch, 25. Oktober 2023 um 03:39:16 UTC+2:

> Hi Stefan!
> it should be form = MyForm1_2_3_4(request.POST) where POST request will 
> place/process the data to your form then after form.save()
>
> On Wed, Oct 25, 2023 at 12:29 AM Stefan Kusmierz  
> wrote:
>
>> Dear community,
>> this looks like a django bug to me:
>> 1. (see first image)
>> By api query I confirm that the last object of class List has the value 
>> "Startwert_neu2" in its field a, which was expected.
>> 2. (see second image)
>> The form "MyForm1_2_3_4" is instantiated using exactly the same command 
>> ("List.objects.last().a") to build formchoices3 which enter the 
>> corresponding choicefield furtherdown in "MyForm1_2_3_4" (not shown in the 
>> image)
>> 3. While running the app my print out (to find the problem) states, that 
>> formchoices3 does not contain the expected data "Startwert_neu2" but "mCP 
>> purity", which is old data from older objects. So the rendered Form also 
>> contains the old data.
>> To complete the information I also added snippets of views (fourth image) 
>> and models (fifth image).
>> Is this a known issue? 
>> Thanks in advance,
>> Stefan
>>
>> [image: DB-Query.jpg][image: Form.jpg][image: print out while 
>> running.jpg][image: snippet from views.jpg][image: snippet from 
>> models.jpg]
>>
>> -- 
>> 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...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/085fcd6d-13aa-422b-86f9-1e15c2549ac8n%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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 
https://groups.google.com/d/msgid/django-users/43b913ef-c9a3-4705-9b58-a889f2667426n%40googlegroups.com.