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

urlpatterns = [
    url(r'^$', views.UwsgiStatus.as_view(), name='uwsgi_index'),
    url(r'^reload/$', views.UwsgiReload.as_view(), name='uwsgi_reload'),
    url(r'^clear_cache/$', views.UwsgiCacheClear.as_view(), name='uwsgi_cache_clear'),
]

from django.conf.urls import url
from . import views

urlpatterns = [
    url(r'^$', views.UwsgiStatus.as_view(), name='uwsgi_index'),
    url(r'^reload/$', views.UwsgiReload.as_view(), name='uwsgi_reload'),
    url(r'^clear_cache/$', views.UwsgiCacheClear.as_view(), name='uwsgi_cache_clear'),
]

Remove usage of patterns in import line
Remove usage of patterns in import line

- from django.conf.urls import patterns, url
+ from django.conf.urls import url
  from . import views
  
  urlpatterns = [
      url(r'^$', views.UwsgiStatus.as_view(), name='uwsgi_index'),
      url(r'^reload/$', views.UwsgiReload.as_view(), name='uwsgi_reload'),
      url(r'^clear_cache/$', views.UwsgiCacheClear.as_view(), name='uwsgi_cache_clear'),
  ]
  
Remove usage of patterns in import line
## Code Before:
from django.conf.urls import patterns, url
from . import views

urlpatterns = [
    url(r'^$', views.UwsgiStatus.as_view(), name='uwsgi_index'),
    url(r'^reload/$', views.UwsgiReload.as_view(), name='uwsgi_reload'),
    url(r'^clear_cache/$', views.UwsgiCacheClear.as_view(), name='uwsgi_cache_clear'),
]

## Instruction:
Remove usage of patterns in import line
## Code After:
from django.conf.urls import url
from . import views

urlpatterns = [
    url(r'^$', views.UwsgiStatus.as_view(), name='uwsgi_index'),
    url(r'^reload/$', views.UwsgiReload.as_view(), name='uwsgi_reload'),
    url(r'^clear_cache/$', views.UwsgiCacheClear.as_view(), name='uwsgi_cache_clear'),
]
