Re: Restrict access to one device per user at any given time

2013-06-21 Thread Mark Robson
Hi, You should not prohibit the user from logging on, rather, you should "log out" their previous session when they start a new one (e.g. on a different device). You might want to notify the user when this happens, to enable them to detect if their account has been compromised (more easily). A

Creating database views, functions, stored procedures etc

2013-06-20 Thread Mark Robson
Hi, I've got a Django application which uses a mixture of managed and unmanaged models. The managed models get their tables created in the usual way, the unmanaged ones via a number of .sql files in the application/sql directory. This works fine, but I also have some views and user-defined fun