from django.conf.urls import patterns, url
from s3direct.views import get_upload_params

urlpatterns = patterns('',
                       url('^get_upload_params/',
                           get_upload_params, name='s3direct'),
                       )

from django.conf.urls import url
from s3direct.views import get_upload_params

urlpatterns = [
    url('^get_upload_params/', get_upload_params, name='s3direct')
]

Update urlpatterns to use list of url()
Update urlpatterns to use list of url()

- from django.conf.urls import patterns, url
+ from django.conf.urls import url
  from s3direct.views import get_upload_params
  
+ urlpatterns = [
+     url('^get_upload_params/', get_upload_params, name='s3direct')
+ ]
- urlpatterns = patterns('',
-                        url('^get_upload_params/',
-                            get_upload_params, name='s3direct'),
-                        )
  
Update urlpatterns to use list of url()
## Code Before:
from django.conf.urls import patterns, url
from s3direct.views import get_upload_params

urlpatterns = patterns('',
                       url('^get_upload_params/',
                           get_upload_params, name='s3direct'),
                       )

## Instruction:
Update urlpatterns to use list of url()
## Code After:
from django.conf.urls import url
from s3direct.views import get_upload_params

urlpatterns = [
    url('^get_upload_params/', get_upload_params, name='s3direct')
]
