프로젝트
GitHub에서 보기
SmileyChris/django-countries
소개
폼에서 사용할 국가 선택 항목, 국기 아이콘 정적 파일, 모델용 국가 필드를 제공하는 Django 애플리케이션입니다.
웹 및 앱 개발What you can do
- Country Field: Django model field with all ISO 3166-1 countries
- Translated Names: Country names translated using Django's i18n system
- Flag Icons: Static flag image files for all countries
- REST Framework: Full Django REST Framework integration
측정된 스타 증가
- in 24h
- 0
- in 7 days
- +1
- in 15 days
- +2
- in 1 month
- +1
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalDjango Countries
A Django application that provides country choices for use with forms, flag icons static files, and a country field for models.
Documentation
Quick Start
Install:
pip install django-countries
Add to INSTALLED_APPS:
INSTALLED_APPS = [
# ...
'django_countries',
]
Use in your models:
from django_countries.fields import CountryField
class Person(models.Model):
country = CountryField()
Features
- Country Field: Django model field with all ISO 3166-1 countries
- Translated Names: Country names translated using Django's i18n system
- Flag Icons: Static flag image files for all countries
- REST Framework: Full Django REST Framework integration
- GraphQL: Support for graphene-django
- Multiple Selection: Support for multiple country selection
Support
- Python: 3.10, 3.11, 3.12, 3.13, 3.14
- Django: 4.2 (LTS), 5.2 (LTS), 6.0, 6.1
- Django REST Framework: 3.14+
Contributing
Contributions are welcome! See the Contributing Guide for details.
Translations
Country names are translated using Django's standard gettext and imported from our Transifex project.
관련 프로젝트 살펴보기
불러오는 중…