from django.conf.urls import patterns, url

urlpatterns = patterns('',
    url(r'^mask/$', 'masquerade.views.mask'),
    url(r'^unmask/$', 'masquerade.views.unmask'),
)

from django.conf.urls import patterns, url

from masquerade.views import mask
from masquerade.views import unmask


urlpatterns = [
    url(r'^mask/$', mask),
    url(r'^unmask/$', unmask),
]

Fix Django 1.10 deprecation warning
Fix Django 1.10 deprecation warning

  from django.conf.urls import patterns, url
  
+ from masquerade.views import mask
+ from masquerade.views import unmask
- urlpatterns = patterns('',
-     url(r'^mask/$', 'masquerade.views.mask'),
-     url(r'^unmask/$', 'masquerade.views.unmask'),
- )
  
+ 
+ urlpatterns = [
+     url(r'^mask/$', mask),
+     url(r'^unmask/$', unmask),
+ ]
+ 
Fix Django 1.10 deprecation warning
## Code Before:
from django.conf.urls import patterns, url

urlpatterns = patterns('',
    url(r'^mask/$', 'masquerade.views.mask'),
    url(r'^unmask/$', 'masquerade.views.unmask'),
)

## Instruction:
Fix Django 1.10 deprecation warning
## Code After:
from django.conf.urls import patterns, url

from masquerade.views import mask
from masquerade.views import unmask


urlpatterns = [
    url(r'^mask/$', mask),
    url(r'^unmask/$', unmask),
]
