old_contents: from django.conf.urls import url
  from . import views
  
  
  urlpatterns = [
      url(
          r'^regione/$',
          views.RegioneAutocomplete.as_view(),
          name='regione-autocomplete',
      ),
      url(
          r'^provincia/$',
          views.ProvinciaAutocomplete.as_view(),
          name='provincia-autocomplete',
      ),
      url(
          r'^cittametropolitana/$',
          views.CittaMetropolitanaAutocomplete.as_view(),
          name='cittametropolitana-autocomplete',
      ),
      url(
          r'^comune/$',
          views.ComuneAutocomplete.as_view(),
          name='comune-autocomplete',
      ),
  ]
  
new_contents: from django.urls import path
  from . import views
  
  
  urlpatterns = [
      path(
          'regione/',
          views.RegioneAutocomplete.as_view(),
          name='regione-autocomplete',
      ),
      path(
          'provincia/',
          views.ProvinciaAutocomplete.as_view(),
          name='provincia-autocomplete',
      ),
      path(
          'cittametropolitana/',
          views.CittaMetropolitanaAutocomplete.as_view(),
          name='cittametropolitana-autocomplete',
      ),
      path(
          'comune/',
          views.ComuneAutocomplete.as_view(),
          name='comune-autocomplete',
      ),
  ]
  
subject: usa nuovo metodo path() in URLconf