Package to create MySQL timestamp field for Django models
Dj myghanta is a Django app to create MySQL timestamp field for Django models.
Add “myghanta” to your INSTALLED_APPS like this:
``` INSTALLED_APPS = ( ... 'myghanta', ) ```
Import it in your models like:
``` from myghanta.fields import MysqlTimeStampField ```
Create model fields like:
``` created_at = MysqlTimestamp(auto_now_add=True) updated_at = MysqlTimestamp(auto_now=True) ```
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.