Skip to main content

Django reusable app with generic and essencial resources.

Project description

Simple project with base common resources for almost any Django project.

Installation

The installation is performed by using pip:

pip install django-essence

To enable django-essence in a Django project it’s needed to add it to INSTALLED_APPS in the project settings file:

INSTALLED_APPS = [
    ...
    'django_essence',
    ...
]

Resources

The current implementation of django-essence offers only common base abstract models listed below:

  • TimestampedModel: model with attributes (fields) useful for audit purposes. Fields:

    • created_at

    • updated_at

  • EssenceModel: model inherited from TimestampedModel with an UUIDField. Fields:

    • id

    • created_at

    • updated_at

  • EssencePersistentModel: model inherited from EssenceModel with “soft delete” feature. Fields:

    • id

    • created_at

    • updated_at

    • deleted

  • EssenceSlugModel: model inherited from EssenceModel with a enhanced slug field. Fields:

    • id

    • created_at

    • updated_at

    • slug

All models are available importing from:

from django_essence.models import *

Running tests (development)

First install development dependencies with:

make install

Than run tests with:

pytest

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

django_essence-0.1.0-py2.py3-none-any.whl (3.9 kB view details)

Uploaded Python 2Python 3

File details

Details for the file django_essence-0.1.0-py2.py3-none-any.whl.

File metadata

  • Download URL: django_essence-0.1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.1

File hashes

Hashes for django_essence-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3abc4c90e8e4b56a8567f37744af2a3aa48db676fd84d43757832927252fb831
MD5 ad9cbd28d35c434a486e218cfd2b3be7
BLAKE2b-256 6f2f1f5ee96b0e9eba62b7cf5d18ee044f4e0a1ec73ba233580f2a5059f7ce21

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