askbot

synopsis:the Django Q&A forum application

Functions in the askbot module perform various basic actions on behalf of the forum application

askbot.get_install_directory()

returns path to directory where code of the askbot django application is installed

askbot.get_version()

returns version of the askbot app this version is meaningful for pypi only

askbot.send_mail(subject_line=None, body_text=None, recipient_list=None, activity_type=None, related_object=None, headers=None, raise_on_failure=False)

sends email message logs email sending activity and any errors are reported as critical in the main log file

related_object is not mandatory, other arguments are. related_object (if given, will be saved in the activity record)

if raise_on_failure is True, exceptions.EmailNotSent is raised

Table Of Contents

This Page