from django.conf import settings
from django.conf.urls import patterns, url


urlpatterns = patterns(
    "bakery.static_views",
    url(r"^(.*)$", "serve", {
        "document_root": settings.BUILD_DIR,
        'show_indexes': True,
        'default': 'index.html'
        }),
)

from django.conf import settings
from django.conf.urls import url
from bakery.static_views import serve


urlpatterns = [
    url(r"^(.*)$", serve, {
        "document_root": settings.BUILD_DIR,
        'show_indexes': True,
        'default': 'index.html'
        }),
]

Upgrade to Django 1.10 style url patterns
Upgrade to Django 1.10 style url patterns

  from django.conf import settings
- from django.conf.urls import patterns, url
+ from django.conf.urls import url
+ from bakery.static_views import serve
  
  
+ urlpatterns = [
- urlpatterns = patterns(
-     "bakery.static_views",
-     url(r"^(.*)$", "serve", {
+     url(r"^(.*)$", serve, {
          "document_root": settings.BUILD_DIR,
          'show_indexes': True,
          'default': 'index.html'
          }),
- )
+ ]
  
Upgrade to Django 1.10 style url patterns
## Code Before:
from django.conf import settings
from django.conf.urls import patterns, url


urlpatterns = patterns(
    "bakery.static_views",
    url(r"^(.*)$", "serve", {
        "document_root": settings.BUILD_DIR,
        'show_indexes': True,
        'default': 'index.html'
        }),
)

## Instruction:
Upgrade to Django 1.10 style url patterns
## Code After:
from django.conf import settings
from django.conf.urls import url
from bakery.static_views import serve


urlpatterns = [
    url(r"^(.*)$", serve, {
        "document_root": settings.BUILD_DIR,
        'show_indexes': True,
        'default': 'index.html'
        }),
]
