django-cities-tiny

소프트웨어 스크린 샷:
django-cities-tiny
소프트웨어 정보:
버전: 1.0
업로드 날짜: 14 Apr 15
개발자: Konstantin Korikov
라이센스: 무료
인기: 3

Rating: nan/5 (Total Votes: 0)

장고 - 도시 - 작은 모델을 제공하고 데이터베이스에 국가 / 지역 / 도시 데이터를 가져 명령 장고 응용 프로그램입니다. 데이터는 GeoNames을에서 뽑아 포함합니다 :
& NBSP; - 국가 이름
& NBSP; - 행정 구역 구역
& NBSP; - 도시 이름
공간 질의 지원은이 응용 프로그램이 필요하지 않습니다.
이 응용 프로그램은 매우 간단하고, 예를 들어 간단한 주소록을하려는 경우에 유용합니다. 당신은 완벽한 기능을 갖춘 공간 데이터베이스를 구축하려는 경우에는 장고 - 도시를 사용해야합니다.
이것은 제임스 그림으로 장고 - 도시 - 빛의 포크입니다. 의 가장 큰 차이점 장고 - 도시 - 작은입니다 :
& NBSP; - (alternateNames.txt)에서 지역화 된 이름에 대한 지원
& NBSP; - 행정 구역 영역에 대한 지원 (admin1CodesASCII.txt, admin2Codes.txt, 또는 XX.txt부터)
& NBSP; - 장고 1.0 이상, 파이썬은 필요하지 2.3과 다른 의존성
설치
장고 - 도시 - 작은 설치 :
& NBSP; & nbsp; & nbsp; 확인 easy_install을 장고 - 도시 - 작은
당신의`INSTALLED_APPS`에`cities_tiny`를 추가합니다.
이제 실행 syncdb, 그것은 모델에 필요한 모든 테이블을 생성합니다 :
& NBSP; & nbsp; & nbsp; 확인 ./manage.py syncdb
데이터 갱신
Finnaly, 명령으로 데이터베이스를 채우는 ::
& NBSP; & nbsp; & nbsp; 확인 ./manage.py citiestinyrefresh
이 명령은 잘으로 도움말을 참조, 설명되어 있습니다 :
& NBSP; & nbsp; & nbsp; 확인 ./manage.py 도움말 citiestinyrefresh
데이터를 제한하는 것은 가져
당신이 프랑스,​​ 미국, 벨기에 만 도시를 가져올 경우에 당신은 당신의 settings.py에서 같은 할 수 ::
& NBSP; & nbsp; & nbsp; 확인 CITIES_TINY_COUNTRIES는 = ( 'FR', '미국', 'BE')
로깅 구성
citiestinyrefresh 명령의 출력은 단순히 -V2 또는 또는 --verbosity = 2 옵션을 통과 얻으려면. 장고 1.3 이상 사용하는 경우 또한, 당신은, 당신의 settings.py에서 로깅 시스템을 구성 할 수 있습니다 단순히`cities_tiny` 로거에 대한 핸들러와 포매터를 구성합니다. 예를 들어 :
& NBSP; & nbsp; & nbsp; 확인 LOGGING = {
& NBSP; & NBSP; & nbsp; & nbsp; 확인 & NBSP; & nbsp; & nbsp; 확인 '버전': 1,
& NBSP; & NBSP; & nbsp; & nbsp; 확인 & NBSP; & nbsp; & nbsp; 확인 'disable_existing_loggers'거짓,
& NBSP; & NBSP; & nbsp; & nbsp; 확인 & NBSP; & nbsp; & nbsp; 확인 '형식화'{
& NBSP; & NBSP; & NBSP; & nbsp; & nbsp; 확인 & NBSP; & nbsp; & nbsp; 확인 & NBSP; & nbsp; & nbsp; 확인 '간단한'{
& NBSP; & nbsp; & nbsp; 확인 & NBSP; & nbsp; & nbsp; 확인 & NBSP; & nbsp; & nbsp; 확인 & NBSP; & nbsp; & nbsp; 확인 & NBSP; & nbsp; & nbsp; 확인 '형식': '% (levelname)의 % (메시지)의'
& NBSP; & NBSP; & NBSP; & nbsp; & nbsp; 확인 & NBSP; & nbsp; & nbsp; 확인 & NBSP; & nbsp; & nbsp; 확인 },
& NBSP; & NBSP; & nbsp; & nbsp; 확인 & NBSP; & nbsp; & nbsp; 확인 },
& NBSP; & NBSP; & nbsp; & nbsp; 확인 & NBSP; & nbsp; & nbsp; 확인 '핸들러'{
& NBSP; & NBSP; & NBSP; & nbsp; & nbsp; 확인 & NBSP; & nbsp; & nbsp; 확인 & NBSP; & nbsp; & nbsp; 확인 '콘솔'{
& NBSP; & nbsp; & nbsp; 확인 & NBSP; & nbsp; & nbsp; 확인 & NBSP; & nbsp; & nbsp; 확인 & NBSP; & nbsp; & nbsp; 확인 & NBSP; & nbsp; & nbsp; 확인 '수준': 'DEBUG'
& NBSP; & nbsp; & nbsp; 확인 & NBSP; & nbsp; & nbsp; 확인 & NBSP; & nbsp; & nbsp; 확인 & NBSP; & nbsp; & nbsp; 확인 & NBSP; & nbsp; & nbsp; 확인 '클래스': 'logging.StreamHandler'
& NBSP; & nbsp; & nbsp; 확인 & NBSP; & nbsp; & nbsp; 확인 & NBSP; & nbsp; & nbsp; 확인 & NBSP; & nbsp; & nbsp; 확인 & NBSP; & nbsp; & nbsp; 확인 '포맷': '간단한'
& NBSP; & NBSP; & NBSP; & nbsp; & nbsp; 확인 & NBSP; & nbsp; & nbsp; 확인 & NBSP; & nbsp; & nbsp; 확인 },
& NBSP; & NBSP; & nbsp; & nbsp; 확인 & NBSP; & nbsp; & nbsp; 확인 },
& NBSP; & NBSP; & nbsp; & nbsp; 확인 & NBSP; & nbsp; & nbsp; 확인 '로거'{
& NBSP; & NBSP; & NBSP; & nbsp; & nbsp; 확인 & NBSP; & nbsp; & nbsp; 확인 & NBSP; & nbsp; & nbsp; 확인 'cities_tiny'{
& NBSP; & nbsp; & nbsp; 확인 & NBSP; & nbsp; & nbsp; 확인 & NBSP; & nbsp; & nbsp; 확인 & NBSP; & nbsp; & nbsp; 확인 & NBSP; & nbsp; & nbsp; 확인 '핸들러'[ '콘솔'],
& NBSP; & nbsp; & nbsp; 확인 & NBSP; & nbsp; & nbsp; 확인 & NBSP; & nbsp; & nbsp; 확인 & NBSP; & nbsp; & nbsp; 확인 & NBSP; & nbsp; & nbsp; 확인 '전파': 사실,
& NBSP; & nbsp; & nbsp; 확인 & NBSP; & nbsp; & nbsp; 확인 & NBSP; & nbsp; & nbsp; 확인 & NBSP; & nbsp; & nbsp; 확인 & NBSP; & nbsp; & nbsp; 확인 '수준': 'DEBUG'
& NBSP; & NBSP; & NBSP; & nbsp; & nbsp; 확인 & NBSP; & nbsp; & nbsp; 확인 & NBSP; & nbsp; & nbsp; 확인 },
& NBSP; & NBSP; & NBSP; & nbsp; & nbsp; 확인 & NBSP; & nbsp; & nbsp; 확인 & NBSP; & nbsp; & nbsp; 확인 # 또한 SQL 쿼리를 보려면이 하나를 사용
& NBSP; & NBSP; & NBSP; & nbsp; & nbsp; 확인 & NBSP; & nbsp; & nbsp; 확인 & NBSP; & nbsp; & nbsp; 확인 '장고'{
& NBSP; & nbsp; & nbsp; 확인 & NBSP; & nbsp; & nbsp; 확인 & NBSP; & nbsp; & nbsp; 확인 & NBSP; & nbsp; & nbsp; 확인 & NBSP; & nbsp; & nbsp; 확인 '핸들러'[ '콘솔'],
& NBSP; & nbsp; & nbsp; 확인 & NBSP; & nbsp; & nbsp; 확인 & NBSP; & nbsp; & nbsp; 확인 & NBSP; & nbsp; & nbsp; 확인 & NBSP; & nbsp; & nbsp; 확인 '전파': 사실,
& NBSP; & nbsp; & nbsp; 확인 & NBSP; & nbsp; & nbsp; 확인 & NBSP; & nbsp; & nbsp; 확인 & NBSP; & nbsp; & nbsp; 확인 & NBSP; & nbsp; & nbsp; 확인 '수준': 'DEBUG'
& NBSP; & NBSP; & NBSP; & nbsp; & nbsp; 확인 & NBSP; & nbsp; & nbsp; 확인 & NBSP; & nbsp; & nbsp; 확인 },
& NBSP; & NBSP; & nbsp; & nbsp; 확인 & NBSP; & nbsp; & nbsp; 확인 }
& NBSP; & nbsp; & nbsp; 확인 }

이 요구 사항 :

이 파이썬
장고

개발자의 기타 소프트웨어 Konstantin Korikov

코멘트 django-cities-tiny

댓글을 찾을 수 없습니다
코멘트를 추가
이미지를 켜십시오!