def facility_user_signup(request):
 if getattr(request, 'is_logged_in', False):
  return HttpResponseRedirect(reverse('homepage'))
 if settings.DISABLE_SELF_ADMIN:
  raise PermissionDenied(_('Please contact a coach or administrator to receive login information to this installation.'))
 if settings.CENTRAL_SERVER:
  raise Http404(_('You may not sign up as a facility user on the central server.'))
 title = _('Sign up for an account')
 return _facility_user(request, new_user=True, title=title)

def facility_user_signup ( request ) : if getattr ( request , 'is_logged_in' , False ) : return HttpResponseRedirect ( reverse ( 'homepage' ) ) if settings . DISABLE_SELF_ADMIN : raise PermissionDenied ( _ ( 'Please contact a coach or administrator to receive login information to this installation.' ) ) if settings . CENTRAL_SERVER : raise Http404 ( _ ( 'You may not sign up as a facility user on the central server.' ) ) title = _ ( 'Sign up for an account' ) return _facility_user ( request , new_user = True , title = title )
anyone can sign up .