Skip to content

Commit

Permalink
Merge pull request #4 from paolodina/master
Browse files Browse the repository at this point in the history
Django 2 further support
  • Loading branch information
kbytesys authored Jan 19, 2019
2 parents f1eb5ac + 9964594 commit 59824ad
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,19 @@ urlpatterns = [

```

In Django 2:
```python

from django.urls import path, include

urlpatterns = [
...
path('comuni_italiani/', include('comuni_italiani.urls', namespace='comuni_italiani')),
...
]

```

Un dump dei dati più aggiornati al momento del rilascio è distribuito sotto forma di fixture. Esso può essere caricato
con il seguente comando:

Expand Down
4 changes: 3 additions & 1 deletion comuni_italiani/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

from . import views

app_name = 'comuni_italiani'

urlpatterns = [
url(r'^elenco/comuni/provincia/(?P<codice>[0-9]+)/$',
views.elenco_comuni_provincia, name="elenco_comuni_provincia"),
Expand Down Expand Up @@ -30,4 +32,4 @@
url(r'^ricerca/comune/$', views.ricerca_comune, name="ricerca_comune"),
url(r'^ricerca/provincia/$', views.ricerca_provincia, name="ricerca_provincia"),
url(r'^ricerca/regione/$', views.ricerca_regione, name="ricerca_regione"),
]
]

0 comments on commit 59824ad

Please sign in to comment.