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 details)

Uploaded Source

File details

Details for the file django-country-regions-0.0.1.tar.gz.

File metadata

  • Download URL: django-country-regions-0.0.1.tar.gz
  • Upload date:
  • Size: 145.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.6

File hashes

Hashes for django-country-regions-0.0.1.tar.gz
Algorithm Hash digest
SHA256 0734f449986c6d20f623c404c119717bfcd74c12ea4663003e9225f46a54fb98
MD5 b7e54819a068b3bce78bebb633057541
BLAKE2b-256 e7d90693a4b9da119c9a489e15ef539004e0d15e24ce63981ee104e9aa6b8335

See more details on using hashes here.

Supported by

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