from django.urls import path

from . import views

urlpatterns = [
    path('', views.ExampleFormView.as_view(), name='upload'),
]

try:
    from django.urls import path
except ImportError:
    from django.conf.urls import url as path

from . import views

urlpatterns = [
    path('', views.ExampleFormView.as_view(), name='upload'),
]

Fix test suite for Django 1.11
Fix test suite for Django 1.11

+ try:
- from django.urls import path
+     from django.urls import path
+ except ImportError:
+     from django.conf.urls import url as path
  
  from . import views
  
  urlpatterns = [
      path('', views.ExampleFormView.as_view(), name='upload'),
  ]
  
Fix test suite for Django 1.11
## Code Before:
from django.urls import path

from . import views

urlpatterns = [
    path('', views.ExampleFormView.as_view(), name='upload'),
]

## Instruction:
Fix test suite for Django 1.11
## Code After:
try:
    from django.urls import path
except ImportError:
    from django.conf.urls import url as path

from . import views

urlpatterns = [
    path('', views.ExampleFormView.as_view(), name='upload'),
]
