Skip to content

Instantly share code, notes, and snippets.

@kalsky
kalsky / manage.py
Created June 18, 2022 04:20
some shortcuts I use with manage.py
#!/usr/bin/env python
import os
import sys
import logging
# disable logging during tests
if 'test' in sys.argv:
logging.disable(logging.CRITICAL)
# add support for --time option to measure the time needed to execute each Test Class
@kalsky
kalsky / get-ideas-to-csv.py
Created May 16, 2019 01:34
This file helps you download the ideas of your AnswerHub community side
#Author: Yaniv Kalsky
import requests
import csv
import os
HOST = 'http://yourcompany.cloud.answerhub.com'
AUTH = "Basic bWFu2XYxa4p5MTlvMTV4"
community_base_url = 'https://community.yourcompany.com'
MAX_IDEAS = 1000