Skip to main content

A Django application that provides generic utility.

Project description

django-util

A Django application that provides generic utility.

Installation

pip install django-util

Utilities

Standalone helpers (no need to add the app to INSTALLED_APPS):

  • django_util.utility.init_django(django_dir, project_name=None) - bootstrap Django from external scripts/notebooks.
  • django_util.utility.get_django_countries_dict() - code↔name maps. Requires the optional django-countries package.
  • django_util.validators.django_validate_email(email, whitelist_domains=None)
  • django_util.validators.django_validate_url(url, allowed_schemes=None)
  • django_util.validators.django_validate_phone(phone, region=None) - returns E.164. Requires the optional django-phonenumber-field package.

Reference

https://docs.djangoproject.com/en/4.2/intro/reusable-apps/

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_util-0.33.tar.gz (30.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_util-0.33-py3-none-any.whl (28.1 kB view details)

Uploaded Python 3

File details

Details for the file django_util-0.33.tar.gz.

File metadata

  • Download URL: django_util-0.33.tar.gz
  • Upload date:
  • Size: 30.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for django_util-0.33.tar.gz
Algorithm Hash digest
SHA256 5286dcdc7b1de32d96363786719ebebffedd45741b2231d68b517192c4542b9e
MD5 018aa824816d8f9b4926124fd1ec3785
BLAKE2b-256 870088059468b4aa475f775cfc9b84b0a82d97dc1b822e42125881caa29711d0

See more details on using hashes here.

File details

Details for the file django_util-0.33-py3-none-any.whl.

File metadata

  • Download URL: django_util-0.33-py3-none-any.whl
  • Upload date:
  • Size: 28.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for django_util-0.33-py3-none-any.whl
Algorithm Hash digest
SHA256 38f303b97ce9a43a0b6fd2e6480c33dd57ed1e5cfd6007d98160c7a5c9aac0ec
MD5 d4ec00b11b4c114a677f42bf440fe8aa
BLAKE2b-256 bc51571787d9da1ab60e4c4a49bd22408623e6ad4bfc8c66fc37048d778f97c1

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