# Path: tests/views.py
# def my_view(request, *args, **kwargs):
#     def get(self, *args, **kwargs):
#     def get(self, request, format=None):
# class MyView(View):
# class MyAPIView(APIView):
# class MyTemplateView(TemplateView):


from django.conf.urls import url
from django.contrib import admin
from tests import views



urlpatterns = [
    url(r'^admin/', admin.site.urls),
    url('foo/', views.MyView.as_view(), name='class-view'),
    url('bar/', views.MyAPIView.as_view(), name='api-view'),
    url('spam/', views.MyAPIView, name='missing-as-view'),

# Path: tests/views.py
# def my_view(request, *args, **kwargs):
#     def get(self, *args, **kwargs):
#     def get(self, request, format=None):
# class MyView(View):
# class MyAPIView(APIView):
# class MyTemplateView(TemplateView):


# Path: tests/urls.py
from django.conf.urls import url
from django.contrib import admin
from tests import views




urlpatterns = [
    url(r'^admin/', admin.site.urls),
    url('foo/', views.MyView.as_view(), name='class-view'),
    url('bar/', views.MyAPIView.as_view(), name='api-view'),
    url('spam/', views.MyAPIView, name='missing-as-view'),

    url('', views.my_view, name='function-view'),