# Path: rest_framework_docs/settings.py
# class DRFSettings(object):
# 
#     def __init__(self):
#         self.drf_settings = {
#             "HIDE_DOCS": self.get_setting("HIDE_DOCS") or False
#         }
# 
#     def get_setting(self, name):
#         try:
#             return settings.REST_FRAMEWORK_DOCS[name]
#         except:
#             return None
# 
#     @property
#     def settings(self):
#         return self.drf_settings


from django.http import Http404
from django.views.generic.base import TemplateView
from rest_framework_docs.api_docs import ApiDocumentation
from rest_framework_docs.settings import DRFSettings


class DRFDocsView(TemplateView):

    template_name = "rest_framework_docs/home.html"
    drf_router = None

    def get_context_data(self, **kwargs):

# Path: rest_framework_docs/settings.py
# class DRFSettings(object):
# 
#     def __init__(self):
#         self.drf_settings = {
#             "HIDE_DOCS": self.get_setting("HIDE_DOCS") or False
#         }
# 
#     def get_setting(self, name):
#         try:
#             return settings.REST_FRAMEWORK_DOCS[name]
#         except:
#             return None
# 
#     @property
#     def settings(self):
#         return self.drf_settings


# Path: rest_framework_docs/views.py
from django.http import Http404
from django.views.generic.base import TemplateView
from rest_framework_docs.api_docs import ApiDocumentation
from rest_framework_docs.settings import DRFSettings



class DRFDocsView(TemplateView):

    template_name = "rest_framework_docs/home.html"
    drf_router = None

    def get_context_data(self, **kwargs):

        settings = DRFSettings().settings