Published May-13-2020
This gist assumes that an app named base exists and is included in INSTALLED_APPS via base.apps.BaseConfig.
base.utils.delete_related_onetoonefield works by looping thru the model instance's available fields and deleting all non-null django.db.models.fields.related.OneToOneField instances.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """Gunicorn config file. | |
| by HacKan (https://hackan.net) | |
| Find it at: https://gist.github.com/HacKanCuBa/275bfca09d614ee9370727f5f40dab9e | |
| Based on: https://gist.github.com/KodeKracker/6bc6a3a35dcfbc36e2b7 | |
| Changelog | |
| ========= | |
| See revisions to access other versions of this file. |