# Path: securedpi_events/views.py
# class EventView(TemplateView):
#     def get_context_data(self, **kwargs):
# def delete_old_events(request, **kwargs):


from django.conf.urls import url, include
from django.views.generic import TemplateView, DetailView
from django.contrib.auth.decorators import login_required
from securedpi_events import views


urlpatterns = [
    url(r'^(?P<pk>\d+)/$',
        login_required(views.EventView.as_view()),
        name='events'),
    url(r'^(?P<pk>\d+)/delete-old-events/$',

# Path: securedpi_events/views.py
# class EventView(TemplateView):
#     def get_context_data(self, **kwargs):
# def delete_old_events(request, **kwargs):


# Path: securedpi_events/urls.py
from django.conf.urls import url, include
from django.views.generic import TemplateView, DetailView
from django.contrib.auth.decorators import login_required
from securedpi_events import views



urlpatterns = [
    url(r'^(?P<pk>\d+)/$',
        login_required(views.EventView.as_view()),
        name='events'),
    url(r'^(?P<pk>\d+)/delete-old-events/$',

        login_required(views.delete_old_events),