Skip to main content

Django Commons

PyPI version

This package includes shared code used by the Drizm organizations development team.

It is not intended for public usage but you may still download, redistribute or modify it to your liking.

Installation

Install:

pip install drizm-django-commons

Once installed through pip, include the app in your settings.py like so:
INSTALLED_APPS += ["drizm_django_commons"]

In order to use the applications manage.py commands you must include the app at the top of the INSTALLED_APPS list.

Import like so:
import drizm_django_commons

Documentation

Custom Management Commands

startapp

This version of startapp has been adjust to play well together with the Drizm-Django-Template file structure.

Apart from that it is not majorly divergent from the default commands functionality.

maketest

Automagically creates boilerplate for a Integration Test for a given application.

Changelog

0.2.1

  • Added HrefModelSerializer which will serialize primary keys to hyperlinks
  • Moved testing.py dependencies to drizm-commons package utilities

0.2.2

  • Fixed a bug with view selection for SelfHrefField

0.3.0

  • Rework startapp command for better default file / folder structure
  • Add maketest command to quickly generate boilerplate for tests
  • Integrate DRF-yasg documentation into Serializer Fields
  • Reduced boilerplate and added additional code comments for serializer fields
  • Add HexColor field
  • Fix issue with implicit view_name retrieval on SelfHrefField

0.3.1

  • Added Image and File validators

Metadata

Release files for drizm-django-commons 0.3.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for drizm-django-commons 0.3.1.1
File Size Uploaded
drizm-django-commons-0.3.1.1.tar.gz 8.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for drizm-django-commons 0.3.1.1
File Interpreter ABI Platform
drizm_django_commons-0.3.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 19.9 kB

Release files / drizm-django-commons-0.3.1.1.tar.gz

Download URL drizm-django-commons-0.3.1.1.tar.gz
Size 8.5 kB
Tags Source
SHA-256 checksum
How to use checksums
16e2c00682cd9152b92a00d2272de65670ad6a188fee47c12710a46751c11c2e
BLAKE2b-256 checksum
How to use checksums
ee01dddedb6d69b2a42fe070d4afbc37eb95dd87c312460addc913d043af5a76
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.5 CPython/3.8.2 Linux/4.4.0-18362-Microsoft

Release files / drizm_django_commons-0.3.1.1-py3-none-any.whl

Download URL drizm_django_commons-0.3.1.1-py3-none-any.whl
Size 11.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a131697154751700d9e3da8e2e8b2065d6473c1eda0104baea4ee048eea968e2
BLAKE2b-256 checksum
How to use checksums
1c0987c69d6ec25aac06b91e8529f59697c9f0ea3058703199f81ddf23ad4f8f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.5 CPython/3.8.2 Linux/4.4.0-18362-Microsoft

Release history Release notifications | RSS feed

This release

0.3.1.1 This release

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page