Re: Username as email

2019-11-23 Thread 'Maher, Brian' via Django users
I maintain one project which does this with a save hook on the User model, setting the username to the email address field (with uniqueness tests, of course). It’s crude, but seems to work well and hasn’t given any problems. — Best Regards, Brian Maher Senior Research Software Engineer & Syste

Re: Expire Password Reset Link

2019-10-23 Thread 'Maher, Brian' via Django users
You could do this quite easily by just querying the table storing reset keys for objects belonging to the user and expiring them (setting the date to the past, or setting an expire bit). However, IMO it is far better to just generate another one, and have them expire automatically after either

Re: nginx server to apache

2019-08-15 Thread 'Maher, Brian' via Django users
Yes, certainly! You can run Django apps under apache using mod_wsgi. There’s an example configuration here: https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/modwsgi/ Best Brian — Best Regards, Brian Maher On 15 Aug 2019, at 09:17, gopi p mailto:gopi.s...@gmail.com>> wrote: Hi,