{"id":25725298,"url":"https://github.com/blfpd/django-countries-french","last_synced_at":"2025-07-21T12:35:29.567Z","repository":{"id":7417357,"uuid":"8750856","full_name":"blfpd/django-countries-french","owner":"blfpd","description":null,"archived":false,"fork":false,"pushed_at":"2013-03-13T11:41:00.000Z","size":292,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-20T01:45:35.148Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/blfpd.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-03-13T11:35:54.000Z","updated_at":"2014-01-12T17:10:19.000Z","dependencies_parsed_at":"2022-09-16T00:03:44.986Z","dependency_job_id":null,"html_url":"https://github.com/blfpd/django-countries-french","commit_stats":null,"previous_names":["blfpd/django-countries-french"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blfpd%2Fdjango-countries-french","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blfpd%2Fdjango-countries-french/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blfpd%2Fdjango-countries-french/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blfpd%2Fdjango-countries-french/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blfpd","download_url":"https://codeload.github.com/blfpd/django-countries-french/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240755022,"owners_count":19852306,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-25T22:22:16.118Z","updated_at":"2025-02-25T22:22:17.382Z","avatar_url":"https://github.com/blfpd.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"================\ndjango-countries\n================\n\nA Django application which provides country choices for use with forms, and\na country field for models.\n\nTo use the flags, use the ``django.contrib.staticfiles`` app added in Django\n1.3 (or `django-staticfiles`_ application for previous Django versions).\n\n.. _django-staticfiles: http://pypi.python.org/pypi/django-staticfiles/\n\n\nCountryField\n============\n\nA country field for Django models that provides all ISO 3166-1 countries as\nchoices.\n\n``CountryField`` is based on Django's ``CharField``, providing choices\ncorresponding to the official ISO 3166-1 list of countries (with a default\n``max_length`` of 2).\n\nConsider the following model using a ``CountryField``::\n\n    from django.db import models\n    from django_countries import CountryField\n\n    class Person(models.Model):\n        name = models.CharField(max_length=100)\n        country = CountryField()\n\nAny ``Person`` instance will have a ``country`` attribute that you can use to\nget details of the person's country:\n\n\u003e\u003e\u003e person = Person(name='Chris', country='NZ')\n\u003e\u003e\u003e person.country\nCountry(code='NZ')\n\u003e\u003e\u003e person.country.name\nu'New Zealand'\n\u003e\u003e\u003e person.country.flag\nu'/static/flags/nz.gif'\n\nThis object (``person.country`` in the example) is a ``Country`` instance,\nwhich is described below.\n\nThe ``Country`` object\n----------------------\n\nAn object used to represent a country, instanciated with a two character\ncountry code.\n\nIt can be compared to other objects as if it was a string containing the\ncountry code, and it's ``__unicode__`` method returns the country code.  \n\nname\n  Contains the full country name.\n\nflag\n  Contains a URL to the flag. ``'flags/[lowercasecountrycode].gif'`` is\n  appended to the ``STATIC_URL`` setting, or if that isn't set, the\n  ``MEDIA_URL`` setting.\n\n\nCountry Choices\n===============\n\nThe ``django_countries.countries`` module contains some constants which can be\nused to generate choices lists for a Django ``Select`` form field.\n\n``COUNTRIES``\n  A tuple of two part tuples, each consisting of a country code and the\n  corresponding nicely titled (and translatable) country name.\n\n``COUNTRIES_BY_CONTINENT``\n  A tuple of tuples, similar to ``COUNTRIES``, but classified by continent.\n\n``COUNTRIES_PLUS``\n  A tuple, similar to ``COUNTRIES``, but also includes duplicates for countries\n  that contain a comma (i.e. the non-comma'd version).\n\n``OFFICIAL_COUNTRIES``\n  A dictionary where each key is a country code and each value is the\n  corresponding official capitalised ISO 3166-1 English country name.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblfpd%2Fdjango-countries-french","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblfpd%2Fdjango-countries-french","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblfpd%2Fdjango-countries-french/lists"}