Skip to main content

Handy models for Django

Project description

django-handy-models

A Django App that adds pre-populated models for common use cases. Includes models for Continents, Countries, Language, Currencies, Timezones.

Example data

{
    "name_exonym": "Sweden",
    "name_endonym": "Sverige",
    "iso_3166_1_alpha_2": "SE",
    "capital_exonym": "Stockholm",
    "capital_endonym": "Stockholm",
    "calling_code": "46",
    "continent": {
        "name": "Europe",
        "abbreviation": "EU"
    },
    "languages":[
        {
            "name_exonym": "Swedish",
            "name_endonym": "Svenska",
            "iso_639_1": "sv"
        }
    ],
    "currencies":[
        {
            "name": "Swedish Krona",
            "name_plural": "Swedish kronor",
            "symbol_exonym": "Skr",
            "symbol_endonym": "kr",
            "iso_4217": "SEK"
        }
    ]
}

Setup

Install from pip

pip install django-handy-models

add to INSTALLED_APPS in Django project’s settings.py

INSTALLED_APPS = [
    ...
    'django_handy_models',
]

Load data from fixtures

python manage.py loaddata django_handy_models

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-handy-models-0.0.2.tar.gz (44.4 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