Django DEBUG settings

set DEBUG=False gave me lots of 404. here is solution. [] import socket if socket.gethostbyname(socket.gethostname()) == “IP address”: DEBUG = True else: DEBUG = False ALLOWED_HOSTS = [“*”,] [] from django.views.static import serve url(r’^static/(.*)$’,serve, {‘document_root’: settings.STATIC_ROOT }) Continue reading Django DEBUG settings

Sender Policy Framework [ SPF ] set up

use it for email verification from mail server like gmail. before ==> Received-SPF: neutral ( is neither permitted nor denied by best guess record for domain of; after add dns txt record ==> v=spf1 a mx -all ==> Received-SPF: pass ( domain of designates as permitted sender); Continue reading Sender Policy Framework [ SPF ] set up