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