Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Access settings attribute from template

For example, in user_navigation.html template we have following code:

if settings.KARMA_MODE != 'hidden' and settings.BADGES_MODE != 'hidden'

I want to understand how this is been done, lets say I want to introduce a boolean value in the settings.py, how do I access that from my template similar to above technique.