open-contracting / software-development-handbook

A guide for developers of OCP's tools
https://ocp-software-handbook.readthedocs.io/en/latest/
Other
4 stars 1 forks source link

Django style guide: Add settings section #44

Closed jpmckinney closed 3 years ago

jpmckinney commented 3 years ago

https://ocp-software-handbook.readthedocs.io/en/latest/python/django.html

python manage.py shell -c 'from django.core.management import utils; print(utils.get_random_secret_key())'
jpmckinney commented 3 years ago

templatetags vs. context processors like in https://github.com/open-contracting/data-registry/pull/160/files

https://docs.djangoproject.com/en/3.2/ref/templates/api/#writing-your-own-context-processors https://docs.djangoproject.com/en/3.2/howto/custom-template-tags/#howto-writing-custom-template-tags

jpmckinney commented 3 years ago

Closed by ddddbf2