# Path: emailcongress/utils.py
# def construct_link(protocol, hostname, path, get_param_dict=None):
#     link = protocol + '://' + hostname + path
#     if get_param_dict is not None:
#         link += '?' + parse.urlencode(get_param_dict)
#     return link


import os
import sys
import requests
import uuid
import traceback
import string
import random
import json
from django.core.management.base import BaseCommand, CommandError
from django.core import management
from django.conf import settings
from raven.contrib.django.raven_compat.models import client
from emailcongress.models import *
from emailcongress.utils import construct_link
        from tests.factories import user, user_message_info, message, admin_user





def reset_database(prompt=True):
    if prompt is True:
        decision = input("This will delete everything in the database. Are you sure you want to do this? [Y,n] ")
        decision2 = input("Are you absolutely sure? This can not be undone ... [Y,n] ") if decision == 'Y' else ''
    else:
        decision = decision2 = 'Y'

    if decision == 'Y' and decision2 == 'Y':

# Path: emailcongress/utils.py
# def construct_link(protocol, hostname, path, get_param_dict=None):
#     link = protocol + '://' + hostname + path
#     if get_param_dict is not None:
#         link += '?' + parse.urlencode(get_param_dict)
#     return link


# Path: emailcongress/management/commands/admin_task.py
import os
import sys
import requests
import uuid
import traceback
import string
import random
import json
from django.core.management.base import BaseCommand, CommandError
from django.core import management
from django.conf import settings
from raven.contrib.django.raven_compat.models import client
from emailcongress.models import *
from emailcongress.utils import construct_link
        from tests.factories import user, user_message_info, message, admin_user






def reset_database(prompt=True):
    if prompt is True:
        decision = input("This will delete everything in the database. Are you sure you want to do this? [Y,n] ")
        decision2 = input("Are you absolutely sure? This can not be undone ... [Y,n] ") if decision == 'Y' else ''
    else:
        decision = decision2 = 'Y'

    if decision == 'Y' and decision2 == 'Y':

        try: