from django.conf.urls import patterns, include, url
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    url(r'^admin/', include(admin.site.urls), name='admin'),
)

from django.conf.urls import include, url
from django.contrib import admin
admin.autodiscover()

urlpatterns = [
    url(r'^admin/', include(admin.site.urls), name='admin'),
]

Fix Django 1.10 url patterns warning
Fix Django 1.10 url patterns warning

- from django.conf.urls import patterns, include, url
+ from django.conf.urls import include, url
  from django.contrib import admin
  admin.autodiscover()
  
- urlpatterns = patterns('',
+ urlpatterns = [
      url(r'^admin/', include(admin.site.urls), name='admin'),
- )
+ ]
  
Fix Django 1.10 url patterns warning
## Code Before:
from django.conf.urls import patterns, include, url
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    url(r'^admin/', include(admin.site.urls), name='admin'),
)

## Instruction:
Fix Django 1.10 url patterns warning
## Code After:
from django.conf.urls import include, url
from django.contrib import admin
admin.autodiscover()

urlpatterns = [
    url(r'^admin/', include(admin.site.urls), name='admin'),
]
