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.
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
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.
Automagically creates boilerplate for a Integration Test for a given application.
- Added HrefModelSerializer which will serialize primary keys to hyperlinks
- Moved testing.py dependencies to drizm-commons package utilities
- Fixed a bug with view selection for SelfHrefField
- 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
- Added Image and File validators