Skip to main content

Package to create MySQL timestamp field for Django models

Project description

Dj myghanta is a Django app to create MySQL timestamp field for Django models.

Quick start

  1. Add “myghanta” to your INSTALLED_APPS like this:

    ```
    INSTALLED_APPS = (
        ...
        'myghanta',
    )
    ```
    
  2. Import it in your models like:

    ```
    from myghanta.fields import MysqlTimeStampField
    ```
    
  3. Create model fields like:

    ```
       created_at = MysqlTimestamp(auto_now_add=True)
       updated_at = MysqlTimestamp(auto_now=True)
    ```
    

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

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

Source Distribution

dj-myghanta-0.1.tar.gz (2.7 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page