# Path: periods/views.py
# class FlowEventViewSet(viewsets.ModelViewSet):
# class StatisticsViewSet(viewsets.ModelViewSet):
# class ApiAuthenticateView(APIView):
# class AerisView(LoginRequiredMixin, JsonView):
# class FlowEventMixin(LoginRequiredMixin):
# class FlowEventCreateView(FlowEventMixin, CreateView):
# class FlowEventUpdateView(FlowEventMixin, UpdateView):
# class FlowEventFormSetView(LoginRequiredMixin, ModelFormSetView):
# class CalendarView(LoginRequiredMixin, TemplateView):
# class CycleLengthFrequencyView(LoginRequiredMixin, JsonView):
# class CycleLengthHistoryView(LoginRequiredMixin, JsonView):
# class QigongCycleView(LoginRequiredMixin, JsonView):
# class StatisticsView(LoginRequiredMixin, TemplateView):
# class ProfileUpdateView(LoginRequiredMixin, UpdateView):
# class ApiInfoView(LoginRequiredMixin, TemplateView):
# class RegenerateKeyView(LoginRequiredMixin, UpdateView):
#     def get_queryset(self):
#     def perform_create(self, serializer):
#     def get_queryset(self):
#     def list(self, request, *args, **kwargs):
#     def post(self, request, *args, **kwargs):
#     def get_context_data(self, **kwargs):
#     def convert_to_user_timezone(self, timestamp):
#     def set_to_utc(self, timestamp):
#     def get_timestamp(self):
#     def is_first_day(self, timestamp):
#     def get_initial(self):
#     def get_object(self, queryset=None):
#     def get_queryset(self):
#     def get_context_data(self, **kwargs):
#     def get_context_data(self, **kwargs):
#     def get_context_data(self, **kwargs):
# def _get_level(start_date, today, cycle_length):
# def _generate_cycles(start_date, today, end_date, cycle_length):
#     def get_context_data(self, **kwargs):
#     def get_context_data(self, **kwargs):
#     def get_object(self, *args, **kwargs):
#     def get_success_url(self):
#     def get_context_data(self, **kwargs):
#     def post(self, request, *args, **kwargs):


from django.conf.urls import include, url
from django.views.generic import RedirectView
from rest_framework import routers
from periods import views as period_views



router = routers.DefaultRouter()
router.register(r'periods', period_views.FlowEventViewSet, base_name='periods')
router.register(r'statistics', period_views.StatisticsViewSet, base_name='statistics')


urlpatterns = [
    url(r'^$', RedirectView.as_view(url='calendar/', permanent=False)),

# Path: periods/views.py
# class FlowEventViewSet(viewsets.ModelViewSet):
# class StatisticsViewSet(viewsets.ModelViewSet):
# class ApiAuthenticateView(APIView):
# class AerisView(LoginRequiredMixin, JsonView):
# class FlowEventMixin(LoginRequiredMixin):
# class FlowEventCreateView(FlowEventMixin, CreateView):
# class FlowEventUpdateView(FlowEventMixin, UpdateView):
# class FlowEventFormSetView(LoginRequiredMixin, ModelFormSetView):
# class CalendarView(LoginRequiredMixin, TemplateView):
# class CycleLengthFrequencyView(LoginRequiredMixin, JsonView):
# class CycleLengthHistoryView(LoginRequiredMixin, JsonView):
# class QigongCycleView(LoginRequiredMixin, JsonView):
# class StatisticsView(LoginRequiredMixin, TemplateView):
# class ProfileUpdateView(LoginRequiredMixin, UpdateView):
# class ApiInfoView(LoginRequiredMixin, TemplateView):
# class RegenerateKeyView(LoginRequiredMixin, UpdateView):
#     def get_queryset(self):
#     def perform_create(self, serializer):
#     def get_queryset(self):
#     def list(self, request, *args, **kwargs):
#     def post(self, request, *args, **kwargs):
#     def get_context_data(self, **kwargs):
#     def convert_to_user_timezone(self, timestamp):
#     def set_to_utc(self, timestamp):
#     def get_timestamp(self):
#     def is_first_day(self, timestamp):
#     def get_initial(self):
#     def get_object(self, queryset=None):
#     def get_queryset(self):
#     def get_context_data(self, **kwargs):
#     def get_context_data(self, **kwargs):
#     def get_context_data(self, **kwargs):
# def _get_level(start_date, today, cycle_length):
# def _generate_cycles(start_date, today, end_date, cycle_length):
#     def get_context_data(self, **kwargs):
#     def get_context_data(self, **kwargs):
#     def get_object(self, *args, **kwargs):
#     def get_success_url(self):
#     def get_context_data(self, **kwargs):
#     def post(self, request, *args, **kwargs):


# Path: periods/urls.py
from django.conf.urls import include, url
from django.views.generic import RedirectView
from rest_framework import routers
from periods import views as period_views




router = routers.DefaultRouter()
router.register(r'periods', period_views.FlowEventViewSet, base_name='periods')
router.register(r'statistics', period_views.StatisticsViewSet, base_name='statistics')


urlpatterns = [
    url(r'^$', RedirectView.as_view(url='calendar/', permanent=False)),

    url(r'^accounts/', include('allauth.urls')),