@run_if('GOOGLE_APPS')
def create_project_google_folder(project):
    today = date.today().strftime('%Y-%m-%d')
    parent_id = (project.project_data.get('client_folder_id') or
                 settings.GOOGLE_PROJECT_ROOT_ID)
    folder = create_folder_with_permissions(
        parent_id,
        ' '.join((today, project.short_description)),
        [write_with_link_permission])
    folder_id = folder.get('id')
    project.project_data['project_folder_id'] = folder_id
    project.team_messages_url = create_document_from_template(
        TEAM_MESSAGES_TEMPLATE_ID,
        'Team Messages',
        [folder_id],
        [write_with_link_permission])['alternateLink']
    project.save()
    return folder
Create drive folder for project information
dataset/ETHPy150Open unlimitedlabs/orchestra/orchestra/google_apps/convenience.py/create_project_google_folder