kbytesys / django_comuni_italiani Goto Github PK
View Code? Open in Web Editor NEWDjango app for Italian cities and regions
License: GNU Lesser General Public License v2.1
Django app for Italian cities and regions
License: GNU Lesser General Public License v2.1
Buongiorno,
mi domandavo come mai avete scelto di non inserire il CAP sulla tabella dei comuni.
Grazie.
ciao,
è possibile che arrivi un adeguamento di compatibilità a Django 2.0?
Hi kbytesys,
I'm glad to use your usefull django app, I'm using python 3.4 with autocomplete_light (3.2.1).
I've got an exception using comuni_italiani.autocomplete, I checked the version mismatch with autocomplete-light, and I followed the brandnew documentation of autocomplete to avoid this problem.
http://django-autocomplete-light.readthedocs.io/en/master/tutorial.html
If I'll get some freetime I promise to do a decent fork/pull request !
Ciao,
apprezzo moltissimo questo modulo che mi ha aiutato moltissimo in un mio progetto personale.
Utilizzo la funzione encode() per generare un CF da confrontare con un altro CF dato in input.
Ho un problema: la data di nascita (antecedente) non va d'accordo con la data di creazione di un comune.
Ciao kbytesys,
Mi viene restituito il seguente errore quando lancio il comando import_comuni:
File "[...]/lib/python3.6/site-packages/comuni_italiani/management/commands/import_comuni.py", line 73, in handle
popolazione = locale.atoi(row['Popolazione legale 2011 (09/10/2011)'])
File "[...]/lib/python3.6/locale.py", line 325, in atoi
return int(delocalize(string))
ValueError: invalid literal for int() with base 10: '2.644'
Il separatore delle migliaia per il locale it_IT risulta essere '. ' (ovvero un punto seguito da uno spazio), mentre il dato contenuto in row['Popolazione legale 2011 (09/10/2011)'], è '2.644' senza spazio dopo il punto.
Al momento ho fixato ignorantemente con un semplice replace('.', '')
e sembra funzionare tutto bene.
Grazie in anticipo,
Simone.
EDIT: mi sono dimenticato di specificare che il separatore con lo spazio sembra dovuto al fatto che utilizzo iMac.
Buongiorno, nel readme c'è scritto questo import
from dal import autocomplete
Ma cosa sarebbe dal?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.