]> sipb.mit.edu Git - snippets/.git/blob - django/mit/README
8271dac004011d195e6c7dd693a27e0a28aaa30b
[snippets/.git] / django / mit / README
1 __init__.py contains some useful functionality for Django applications running
2 at MIT, particularly on the scripts.mit.edu platform
3 * zephyr(msg, clas, instance, rcpt) sends a zephyr (by shelling out to zwrite).
4   This may be useful for debugging or logging
5 * ScriptsRemoteUserMiddleware and ScriptsRemoteUserBackend work together to
6   auto-create users from certificates on scripts.mit.edu-hosted sites. Account
7   details are automatically retrieved from LDAP.
8 * scripts_login is a view that tries to log users into a site using certs.
9
10 To use them, you'll probably want to symlink or copy this directory ("mit")
11 into your project, add it to your apps list, and modify your middlewares and
12 auth backend appropriately. Do *not* link the django directory into your app;
13 it's reasonably likely to break your "import django.foo" statements.
14
15 This code is descended from work on Remit (https://remit.scripts.mit.edu/trac/)
16 and the ASA DB (https://asa.scripts.mit.edu/trac/); current and past bugs are
17 likely to be filed there.