from django.conf import urls

from tastypie import api

from . import resources

v1_api = api.Api(api_name='v1')
v1_api.register(resources.StreamResource())

urlpatterns = urls.patterns(
    '',

    urls.url(r'^', urls.include(v1_api.urls)),
)

from django.conf import urls

from tastypie import api

from . import resources

v1_api = api.Api(api_name='v1')
v1_api.register(resources.StreamResource())

urlpatterns = [
    urls.url(r'^', urls.include(v1_api.urls)),
]

Fix urlpatterns for Django 1.10.
Fix urlpatterns for Django 1.10.

  from django.conf import urls
  
  from tastypie import api
  
  from . import resources
  
  v1_api = api.Api(api_name='v1')
  v1_api.register(resources.StreamResource())
  
- urlpatterns = urls.patterns(
-     '',
+ urlpatterns = [
+     urls.url(r'^', urls.include(v1_api.urls)),
+ ]
  
-     urls.url(r'^', urls.include(v1_api.urls)),
- )
- 
Fix urlpatterns for Django 1.10.
## Code Before:
from django.conf import urls

from tastypie import api

from . import resources

v1_api = api.Api(api_name='v1')
v1_api.register(resources.StreamResource())

urlpatterns = urls.patterns(
    '',

    urls.url(r'^', urls.include(v1_api.urls)),
)

## Instruction:
Fix urlpatterns for Django 1.10.
## Code After:
from django.conf import urls

from tastypie import api

from . import resources

v1_api = api.Api(api_name='v1')
v1_api.register(resources.StreamResource())

urlpatterns = [
    urls.url(r'^', urls.include(v1_api.urls)),
]
