text: from django.conf import settings
  from django.urls import path, re_path, include, reverse_lazy
  from django.conf.urls.static import static
  from django.contrib import admin
  from django.views.generic.base import RedirectView
  from rest_framework.routers import DefaultRouter
  from rest_framework.authtoken import views
  from .stats.views import *
  
  router = DefaultRouter()
  router.register(r'flights', FlightViewSet)
  router.register(r'decks', DeckViewSet)
  router.register(r'drones', DroneViewSet)
  # router.register(r'$', DroneViewSet)
  router.register(r'flightrecords', FlightRecordViewSet)
  
  
  
  
  urlpatterns = [
      path('admin/', admin.site.urls),
      path('api/v1/', include(router.urls)),
      path('api-token-auth/', views.obtain_auth_token),
      path('api-auth/', include('rest_framework.urls', namespace='rest_framework')),
      path('auth/', include('djoser.urls')),
      path('auth/', include('djoser.urls.authtoken')),
      # the 'api-root' from django rest-frameworks default router
      # http://www.django-rest-framework.org/api-guide/routers/#defaultrouter
      re_path(r'^$', RedirectView.as_view(url=reverse_lazy('api-root'), permanent=False)),
  
  ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
  