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


admin.autodiscover()


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

from django.conf.urls import url, include
from django.contrib import admin


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

Test urls - list of urls instead of patterns()
Test urls - list of urls instead of patterns()

- from django.conf.urls import patterns, url, include
+ from django.conf.urls import url, include
  from django.contrib import admin
  
  
- admin.autodiscover()
+ urlpatterns = [
+     url(r'^admin/', include(admin.site.urls)),
+ ]
  
- 
- urlpatterns = patterns(
-     '',
-     url(r'^admin/', include(admin.site.urls)),
- )
- 
Test urls - list of urls instead of patterns()
## Code Before:
from django.conf.urls import patterns, url, include
from django.contrib import admin


admin.autodiscover()


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

## Instruction:
Test urls - list of urls instead of patterns()
## Code After:
from django.conf.urls import url, include
from django.contrib import admin


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