Skip to main content

Django Extensions

Project description

Django Ext

Some extensions for Django.

Models

TimestampModel

Add created_at and updated_at for model.

TimeRangeModel

Add started_at and ended_at for model.

UserTrackModel

Add created_by and update_by for model.

This model requires django-currentuser, and should add it to the middleware classes in your settings.py:

MIDDLEWARE = (
    ...,
    'django_currentuser.middleware.ThreadLocalUserMiddleware',
)

Commands

translate

Translate the permission names into the local language.

$ python manage.py translate

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-ext-0.7.tar.gz (5.3 kB view hashes)

Uploaded Source

Built Distribution

django_ext-0.7-py3-none-any.whl (6.0 kB view hashes)

Uploaded Python 3

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