from django.conf.urls import include, url
from django.contrib import admin

from incuna_test_utils.compat import DJANGO_LT_17
from tests import views


if DJANGO_LT_17:
    admin.autodiscover()


urlpatterns = [
    url(r'^admin/', include(admin.site.urls)),
    url('foo/', views.MyView.as_view(), name='class-view'),
    url('bar/', views.MyAPIView.as_view(), name='api-view'),
    url('', views.my_view, name='function-view'),
]
