Ask Your Question
0

Introduce new variables in settings.py

asked 2013-11-12 16:01:19 -0600

SocialQA gravatar image

How can I add new variables and their defaults values to settings.py such that they get created in settings file during the installation time.

example:

show_widget = False
edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2013-11-12 16:30:04 -0600

Adding variables to the setting template?

You'll need to modify the askbot/setup_templates/settings.mustache so that way when you create a new project your custom values will be on the project's settings.py file.

edit flag offensive delete link more
1

answered 2013-11-12 16:59:27 -0600

Evgeny gravatar image

updated 2013-11-12 17:34:37 -0600

Hello there, if you're asking about the settings that are available at the "settings" link, then have a look at how to create "overrides" for the livesettings django app.

Those actually can be also added to the template Adolfo mentioned.

edit flag offensive delete link more

Comments

Thanks its good to know about this option too.

SocialQA gravatar imageSocialQA ( 2013-11-13 14:54:39 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2013-11-12 16:01:19 -0600

Seen: 74 times

Last updated: Nov 12 '13