comparison doc/DJANGO @ 152:efdfc7e48ba1

Document a few Django features to consider for the near future
author Sylvain Beucler <beuc@beuc.net>
date Fri, 19 Feb 2010 12:59:15 +0100
parents
children 384a4837137d
comparison
equal deleted inserted replaced
151:cbd56e471931 152:efdfc7e48ba1
1 Stuff of interest:
2
3 - There's a way to delegate authentication to Apache:
4 http://docs.djangoproject.com/en/dev/howto/auth-remote-user/#howto-auth-remote-user
5
6 This is a good thing, and we probably should have a look at it, in
7 the prospect of similarly supporting authentication for other
8 applications.
9
10 - Django does not offer user registration by default, but
11 django-registration fills the gap:
12 http://bitbucket.org/ubernostrum/django-registration/
13
14 Note that django-registration creates a normal user. Either we
15 modify it to create an ExtendedUser too, or we may adapt our code so
16 that any normal user (created by django-registration, or maybe also
17 imported from another Django app) gets promoted to ExtendedUser;
18 this could be done using a middleware, or by replacing our
19 "get_object_or_404(ExtendedUser, pk=request.user.pk)" calls with
20 something that actually creates the ExtendedUser if the user is just
21 a basic user.
22
23 - As for 2010-02 Django 1.1 does not have a messaging framework for
24 anonymous users (only for logged-in users), but this will change in
25 Django 1.2, planned for 2010-03:
26 http://docs.djangoproject.com/en/dev/ref/contrib/messages/