Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Python 

Anybody here familiar with Django framework?

Hi, I creating a sign up/sign in page but having toruble deleting use info form the database if the user doesn't confirm the email address.

I want the process to go like this:

> User signs up
> If user confirms their email within 1 day, their account becomes active
If user doesn't confirm their email in the given time frame, then the temp info saved about their profile (username/email) is deleted from the email.
[Image: r48Ze34.gif]
You're going to want to use a cron job or because you're using python, you can also use celery; there are background task libraries for Django I believe as well

Basically, in the cron job, you'd get the current time then compare against when created to see if it's been a day or not and then delete those accounts that are expired


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Python] by NavTechSep 13, 2022 07:23 AM 9 291 Sep 13, 2022 07:23 AM
Last Post: еlixir
[Python] by SмℯґƒDec 10, 2020 12:52 PM 6 213 Dec 10, 2020 12:52 PM
Last Post: Sмℯґƒ
[Python] by DexieAug 21, 2020 08:32 AM 7 213 Aug 21, 2020 08:32 AM
Last Post: vorticalbox