Skip to main content

A Django select cities web-based ibge.

Project description

ML IBGE CITIES

Quick start

  1. Add ml_ibge_cities in your Django settings.py:
    INSTALLED_APPS = [
        ...
        'ml_ibge_cities',
        ...
    ]
  1. Add in your admin.py file the fallow code:
    from ml_ibge_cities.admin import MLIBGECitiesAdmin

    @admin.register(Example)
    class ExampleAdmin(MLIBGECitiesAdmin):
        pass
  1. Add in the forms.py file the fallow code:
    from ml_ibge_cities.forms import MLIBGECitiesForm
    class ExampleAdminForm(MLIBGECitiesForm):
        class Meta:
            ...
            fields = (... "state", "city", ...)
            ...

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ml-ibge-cities-1.0.1.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

ml_ibge_cities-1.0.1-py3-none-any.whl (5.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page