Tipp #4 ist allerdings ein Antipattern, dass ich nicht so stehen lassen kann. Ein if, in dem true oder false gesetzt wird, ist doppeltgemoppelt. Also wenn schon, dann bitte
Code: Alles auswählen
DEBUG = socket.gethostname() != 'productionserver.com'
Code: Alles auswählen
DEBUG = socket.gethostname() != 'productionserver.com'