django_indian_cities
1.0.0
플러그가 있으면? 방금 수입 할 수있는 놀이는 인도 도시 나 주로 선택 필드를 채울 것입니다. 얼마나 좋을지.
가져 오려면이 줄을 추가하십시오
from indian_cities.dj_city import cities
테스트하십시오
print(cities[0])
이제 출력이 다음과 같이 보이는 경우
('Andaman and Nicobar Islands', (('Port Blair', 'Port Blair'),))
그럼 굉장 해요, 작동 했어?
class myModel(models.Model):
city = models.CharField(choices=cities, null=False, max_length=20)
Python, Django의 모든 버전
이것을 설치하려면
PIP는 인도 도시를 설치합니다
LinkedIn : https://www.linkedin.com/in/chayandatta/
github : https://github.com/chayandatta
❤️ 및?