Skip to main content

C

Project description

django-country-regions

A simple app providing two models app providing countries and regions extracted from django-cities-light

Requirements:

  • Python >= 3.6
  • Django >= 1.11
  • MySQL or PostgreSQL or SQLite.

Installation and configuration

Install django-country-regions:

pip install django-country-regions

Add django-country-regions to your project's settings.INSTALLED_APPS

#settings.py

INSTALLED_APPS = [
    #...some packages
    'country_regions',
    #...some packages
]

Then run the full import

This command will create the corresponding tables and load the data into the database

example/manage.py migrate

Author(s)

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

django-country-regions-0.0.1.tar.gz (145.5 kB view hashes)

Uploaded Source

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