Index: django/conf/global_settings.py =================================================================== --- django/conf/global_settings.py (revision 5065) +++ django/conf/global_settings.py (working copy) @@ -312,6 +312,12 @@ AUTHENTICATION_BACKENDS = ('django.contrib.auth.backends.ModelBackend',) +LOGIN_URL = '/accounts/login/' + +LOGOUT_URL = '/accounts/logout/' + +POSTLOGIN_REDIRECT_URL = '/accounts/profile/' + ########### # TESTING # ########### Index: django/contrib/comments/templatetags/comments.py =================================================================== --- django/contrib/comments/templatetags/comments.py (revision 5065) +++ django/contrib/comments/templatetags/comments.py (working copy) @@ -25,6 +25,7 @@ self.is_public = is_public def render(self, context): + from django.conf import settings from django.utils.text import normalize_newlines import base64 context.push() @@ -64,6 +65,7 @@ if self.rating_options: context['rating_range'], context['rating_choices'] = Comment.objects.get_rating_options(self.rating_options) context['hash'] = Comment.objects.get_security_hash(context['options'], context['photo_options'], context['rating_options'], context['target']) + context['logout_url'] = settings.LOGOUT_URL default_form = loader.get_template(COMMENT_FORM) output = default_form.render(context) context.pop() Index: django/contrib/comments/templates/comments/form.html =================================================================== --- django/contrib/comments/templates/comments/form.html (revision 5065) +++ django/contrib/comments/templates/comments/form.html (working copy) @@ -3,7 +3,7 @@