# Path: dplace_app/views.py
# def view_language(request, glottocode):
# def download_file(request):
# def angular(request):
# 
# Path: dplace_app/api_views.py
# class VariableViewSet(viewsets.ReadOnlyModelViewSet):
# class CategoryViewSet(viewsets.ReadOnlyModelViewSet):
# class CodeDescriptionViewSet(viewsets.ReadOnlyModelViewSet):
# class ValueViewSet(viewsets.ReadOnlyModelViewSet):
# class SocietyViewSet(viewsets.ReadOnlyModelViewSet):
# class LargeResultsSetPagination(PageNumberPagination):
# class VeryLargeResultsSetPagination(PageNumberPagination):
# class LanguageViewSet(viewsets.ReadOnlyModelViewSet):
# class LanguageFamilyViewSet(viewsets.ReadOnlyModelViewSet):
# class TreeResultsSetPagination(PageNumberPagination):
# class LanguageTreeViewSet(viewsets.ReadOnlyModelViewSet):
# class LanguageTreeLabelsViewSet(viewsets.ReadOnlyModelViewSet):
# class SourceViewSet(viewsets.ReadOnlyModelViewSet):
# class GeographicRegionViewSet(viewsets.ReadOnlyModelViewSet):
#     def retrieve(self, request, *args, **kwargs):
#     def retrieve(self, request, *args, **kwargs):
#     def detail(self, request, society_id):
# def get_query_from_json(request):
# def result_set_from_query_dict(query_dict):
#     def id_array(l):
# def trees_from_societies(request):
# def find_societies(request):
# def get_categories(request):
# def get_dataset_sources(request):
# def get_min_and_max(request):
# def bin_cont_data(request):  # MAKE THIS GENERIC
# def csv_download(request):


from django.conf.urls import url, include
from django.views.generic.base import RedirectView
from rest_framework import routers
from rest_framework import renderers
from dplace_app import views, api_views


router = routers.DefaultRouter()
router.register(r'variables', api_views.VariableViewSet)
router.register(r'categories', api_views.CategoryViewSet)

# Path: dplace_app/views.py
# def view_language(request, glottocode):
# def download_file(request):
# def angular(request):
# 
# Path: dplace_app/api_views.py
# class VariableViewSet(viewsets.ReadOnlyModelViewSet):
# class CategoryViewSet(viewsets.ReadOnlyModelViewSet):
# class CodeDescriptionViewSet(viewsets.ReadOnlyModelViewSet):
# class ValueViewSet(viewsets.ReadOnlyModelViewSet):
# class SocietyViewSet(viewsets.ReadOnlyModelViewSet):
# class LargeResultsSetPagination(PageNumberPagination):
# class VeryLargeResultsSetPagination(PageNumberPagination):
# class LanguageViewSet(viewsets.ReadOnlyModelViewSet):
# class LanguageFamilyViewSet(viewsets.ReadOnlyModelViewSet):
# class TreeResultsSetPagination(PageNumberPagination):
# class LanguageTreeViewSet(viewsets.ReadOnlyModelViewSet):
# class LanguageTreeLabelsViewSet(viewsets.ReadOnlyModelViewSet):
# class SourceViewSet(viewsets.ReadOnlyModelViewSet):
# class GeographicRegionViewSet(viewsets.ReadOnlyModelViewSet):
#     def retrieve(self, request, *args, **kwargs):
#     def retrieve(self, request, *args, **kwargs):
#     def detail(self, request, society_id):
# def get_query_from_json(request):
# def result_set_from_query_dict(query_dict):
#     def id_array(l):
# def trees_from_societies(request):
# def find_societies(request):
# def get_categories(request):
# def get_dataset_sources(request):
# def get_min_and_max(request):
# def bin_cont_data(request):  # MAKE THIS GENERIC
# def csv_download(request):


# Path: dplace_app/urls.py
from django.conf.urls import url, include
from django.views.generic.base import RedirectView
from rest_framework import routers
from rest_framework import renderers
from dplace_app import views, api_views



router = routers.DefaultRouter()
router.register(r'variables', api_views.VariableViewSet)
router.register(r'categories', api_views.CategoryViewSet)

router.register(r'codes', api_views.CodeDescriptionViewSet)