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

后端 未结 5 1005
不思量自难忘°
不思量自难忘° 2021-01-30 12:41

When I run python manage.py shell, I can print out the python path

>>> import sys
>>> sys.path

What should I typ

5条回答
  •  -上瘾入骨i
    2021-01-30 13:21

    I know that this is an old question, but with current versions of django (1.6+), you can accomplish this from the command line the following way:

    python manage.py diffsettings --all
    

    The result will show all of the settings including the defautls (denoted by ### in front of the settings name).

提交回复
热议问题