Skip to main content

model extensions with timestamp and uuid and more

Project description

Django Model Extensions

  • A Django library for model extensions

Requirements

  • Python (3.5, 3.6, 3.7, 3.8)
  • Django (2.0, 3.0)

We highly recommend and only officially support the latest patch release of each Python and Django series.

Installation

Install using pip...

pip install django-extensions-models

settings

INSTALLED_APPS = (
    # ...
    'models_extensions',
)

Example

Let's take a look at a quick example of using model extensions

from models_extensions.models import UUIDModel, TimeStampedModel, ActivatorModel

class YourModel(UUIDModel, TimeStampedModel, ActivatorModel):
    # ...

Don't forget makemigrations & migrate to apply models to your database.

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-extensions-models-1.0.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

django_extensions_models-1.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file django-extensions-models-1.0.tar.gz.

File metadata

  • Download URL: django-extensions-models-1.0.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.3

File hashes

Hashes for django-extensions-models-1.0.tar.gz
Algorithm Hash digest
SHA256 dc8c43eb57289629be0d8d2ee11631c0199b3055a4a3d8451d6a11cfcbea5f4b
MD5 1d94a9486524f28fd5e65b5be8bd06de
BLAKE2b-256 cb3b8c9ea96f389986617d8ccbced0d89c413fe67eb3833221579ce0c7c5e9e2

See more details on using hashes here.

File details

Details for the file django_extensions_models-1.0-py3-none-any.whl.

File metadata

  • Download URL: django_extensions_models-1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.3

File hashes

Hashes for django_extensions_models-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ab87073524a35e46d5fb712e0c2482ef1f20a521d5ebfd3d5624b8e0f81203d4
MD5 feb04f78d213f4182bb482795f793630
BLAKE2b-256 61db5dfe61e108e5ef47debed37e837f35e0ac46c0152b48526bb86fab73b8a0

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