These are chat archives for django/django
raise ImproperlyConfigured("settings.DATABASES is improperly configured. " django.core.exceptions.ImproperlyConfigured: settings.DATABASES is improperly configured. Please supply the ENGINE value. Check settings documentation for more details.
local_settings.pybecause it contains env-special data
django.conf.settingsand use that
temp = RefGen.objects.filter(ref_number__isnull=False).latest('ref_number’)
.latest(‘ref_number')will return only the value for that header?
import ipdb; ipdb.set_trace. At that point it will drop you in the debugger's shell, where you can enter
n(next) for step over,
sfor step into, or type normal Python commands to examine the values of variables.
btgives you a backtrace iirc. There are also many more commands. I think '?' shows help.
CSRFMiddlewareand create something of your own / extend the existing one - https://github.com/django/django/blob/master/django/middleware/csrf.py