Skip to main content

A Django app that adds cities and countries to your project.

Project description

# django-countries

django-countries is a Django app to that provides sessional features to your Django project.

Detailed documentation is in the “docs” directory.

Quick start

  1. Add “polls” to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = [
        ...,
        "countries",
    ]
  2. Include the polls URLconf in your project urls.py like this:

    path("countries/", include("countries.urls")),
  3. Run python manage.py migrate to create the polls models.

  4. Run python manage.py upload_data to upload the data to the database.

  5. Start the development server and visit http://127.0.0.1:8000/admin/ to create a poll (you’ll need the Admin app enabled).

  6. Visit http://127.0.0.1:8000/polls/ to participate in the poll

7. to import MyResponse ,get_path , etc… use from countries.utils import *

from countries.utils import MyResponse ,get_path , etc...

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

logatta-countries-0.5.tar.gz (695.5 kB view details)

Uploaded Source

File details

Details for the file logatta-countries-0.5.tar.gz.

File metadata

  • Download URL: logatta-countries-0.5.tar.gz
  • Upload date:
  • Size: 695.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for logatta-countries-0.5.tar.gz
Algorithm Hash digest
SHA256 a72b0fd229cb12da9be3a40f3c83996b5a94e56d0e31ff61535440e253008e6a
MD5 6e2d0a38906c7deccf695c5e5cb10c27
BLAKE2b-256 4b196f837a1fcdaf94b461d415086193db32577f2e0b121bf6e273fe7fc6568f

See more details on using hashes here.

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