First time here? Check out the FAQ!
1

How to set RSS_ENABLED to False without change the source code?
 

I tried to add RSS_ENABLED = False in my settings.py but it did not work. I saw this switch in conf/social_sharing.py. Thanks!

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
nixfish's avatar
1
nixfish
asked 11 years ago

Comments

see more comments

1 Answer

0

This feature works like in the livesettings app, we use it internally, it's not the most straightforward, but possible.

LIVESETTINGS_OPTIONS = {
    1: { # site id
        'DB': True,
        'SETTINGS': {
            'SOCIAL_SHARING': { # this is name of the group of settings
                'RSS_ENABLED': True, # name of the setting
            },
        }
    }
}

You can change these via UI too: log in as admin and go to /settings url or click the "settings" link in the header.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
answered 11 years ago
link

Comments

see more comments