# Path: armstrong/hatband/http.py
# class JsonResponse(HttpResponse):
#     """
#     Simple HttpResponse object that takes a JSON value as it's parameter
# 
#     TODO: Find a proper home for this.
#     """
#     def __init__(self, data, *args, **kwargs):
#         super(JsonResponse, self).__init__(json.dumps(data), *args, **kwargs)


from django.conf import settings
from django.contrib.contenttypes.models import ContentType
from django.db.models import Q
from django.http import HttpResponse
from django.http import HttpResponseBadRequest, HttpResponseNotFound
from django.core.exceptions import ObjectDoesNotExist
    from django.conf.urls import patterns, url
    from django.conf.urls.defaults import patterns, url
from armstrong.core.arm_layout.utils import render_model
from ..http import JsonResponse

try:
except ImportError:




EXCLUDED_MODELS_FROM_FACETS = getattr(settings,
    "ARMSTRONG_EXCLUDED_MODELS_FROM_FACETS", [
        # usage: ("app_label", "model_name"),
        ('taggit', 'taggeditem'),
        ("arm_wells", "well"),
        ("arm_wells", "node"),
    ])

EXCLUDED_APPS_FROM_FACETS = getattr(settings,
    "ARMSTRONG_EXCLUDED_APPS_FROM_FACETS", [
        "admin", "arm_access", "auth", "contenttypes", "djcelery",
        "registration", "reversion", "sessions", "sites", "south"
    ])


class ArmstrongBaseMixin(object):

# Path: armstrong/hatband/http.py
# class JsonResponse(HttpResponse):
#     """
#     Simple HttpResponse object that takes a JSON value as it's parameter
# 
#     TODO: Find a proper home for this.
#     """
#     def __init__(self, data, *args, **kwargs):
#         super(JsonResponse, self).__init__(json.dumps(data), *args, **kwargs)


# Path: armstrong/hatband/views/search.py
from django.conf import settings
from django.contrib.contenttypes.models import ContentType
from django.db.models import Q
from django.http import HttpResponse
from django.http import HttpResponseBadRequest, HttpResponseNotFound
from django.core.exceptions import ObjectDoesNotExist
    from django.conf.urls import patterns, url
    from django.conf.urls.defaults import patterns, url
from armstrong.core.arm_layout.utils import render_model
from ..http import JsonResponse


try:
except ImportError:




EXCLUDED_MODELS_FROM_FACETS = getattr(settings,
    "ARMSTRONG_EXCLUDED_MODELS_FROM_FACETS", [
        # usage: ("app_label", "model_name"),
        ('taggit', 'taggeditem'),
        ("arm_wells", "well"),
        ("arm_wells", "node"),
    ])

EXCLUDED_APPS_FROM_FACETS = getattr(settings,
    "ARMSTRONG_EXCLUDED_APPS_FROM_FACETS", [
        "admin", "arm_access", "auth", "contenttypes", "djcelery",
        "registration", "reversion", "sessions", "sites", "south"
    ])


class ArmstrongBaseMixin(object):

    url_prefix = "armstrong"