Export server_mode into the template context, and use it to conditionalize the addition of the server mode into the title. - Legacy-Id: 632
6 lines
114 B
Python
6 lines
114 B
Python
from django.conf import settings
|
|
|
|
def server_mode(request):
|
|
return {'server_mode': settings.SERVER_MODE}
|
|
|