python-antispam icon indicating copy to clipboard operation
python-antispam copied to clipboard

Will this work with Django?

Open adambirds opened this issue 3 years ago • 1 comments

Will this work with Django?

How would we calculate the time taken to fill in the comment form or know if JS is on?

Thanks

adambirds avatar Jun 13 '22 18:06 adambirds

Hello.

This will work with Jango. The module is a standalone solution and independent of frameworks.

Set a cookie via JS script on the page with the form. If the cookie is set and you can get it via python script it means the JS script was performed.

As for the submittime, I can't tell you how to do this right now. Probably you can use a cookie for page-generated timestamp and form submitting timestamp. Then calculate the diff.

alexandergull avatar Jun 16 '22 13:06 alexandergull