Skip to main content

Contains common application for Emtex

Project description

This contains utility like permissions, audit log etc.

Detailed documentation is in the “docs” directory.

How to install

  1. Using pip:

    pip install emtex_common_utils==0.3
    Add emtex_common_utils==0.3 in your requirements.txt file and then run:
    pip install -r requirements.txt

Quick start

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


Things available

  1. Database Migrations:

    python emtex_migrate --for_date="YYYY-MM-DD"
  2. Logging:

    from emtex_common_utils.models import BaseModel, BaseLogModel
    from emtex_common_utils.mixins import BaseModelMixin
    class MyModelLog(BaseLogModel):
        """ Model to log changes for model MyModel """
    class MyModel(BaseModel, BaseModelMixin):
        """ Model which changes needs to be tracked. """
        class Meta:
            log_fields = (
                my_field1, my_field2,
            log_model_name = MyModelLog

Project details

Download files

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

Files for emtex_common_utils, version 0.4
Filename, size File type Python version Upload date Hashes
Filename, size emtex_common_utils-0.4.tar.gz (5.4 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page