Just create a model that stores the url and the expiration time. If the url is hit past the expiration time, delete it, if it's still within the time limit, display whatever you want to display. Obviously this is for a small system, since you would be waiting to delete until the url is hit, but its quick and easy. To expand on it, make a deletion script that purges all old urls on a set interval, say daily, on a cron job.
On Apr 23, 10:07 am, daniels <[email protected]> wrote: > Take a look at this Lighttpd > module:http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModSecDownload > You could implement something based on what the module above is doing. > > On Apr 23, 12:26 pm, Faizan <[email protected]> wrote: > > > Wondering if there is a good way to generate temporary URLs that > > expire in X days. Would like to email out a URL that the recipient can > > click to access a part of the site that then is inaccessible via that > > URL after some time period. > > > Thanks, > > Faizian > > > -- > > You received this message because you are subscribed to the Google Groups > > "Django users" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]. > > For more options, visit this group > > athttp://groups.google.com/group/django-users?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group > athttp://groups.google.com/group/django-users?hl=en. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

