How do I print out the contents of my settings in a django shell?

from django.conf import settings
dir(settings)

and then choose attribute from what dir(settings) have shown you to say:

settings.name

where name is the attribute that is of your interest

Alternatively:

settings.__dict__

prints all the settings. But it prints also the module standard attributes, which may somewhat clutter the output.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)