refactoring settings.py

 - adding documentation
 - reordering and grouping
removing space, causing: Inline literal start-string without end-string
updating references
indentation adjustment
Merge pull request #3019 from aleksandra-tarkowska/settings

refactoring settings.py