New secret_settings mechanism

53 views
Skip to first unread message

Griatch Art

unread,
Jun 4, 2017, 5:07:44 PM6/4/17
to Evennia
Hi folks,

As of today I pushed some more flexible ways for people who want to share their game dirs with others (or put them online) but don't want to share server-specific settings or game tweaks.

Included in newly created game dirs is now a secret_settings.py file. This imported at the end of your normal settings.py  file. To begin with it only holds the SECRET_KEY property but anything you add here will override what is in settings.py.

This means that secret_settings.py is in .gitignore (and will thus default to not be committed or pushed if you share your code) whereas settings.py is now not in .gitignore anymore. The idea is that the gamedir you share comes with the settings.py file, and it should therefore be complete with default values so others can use it. Custom or server-specific stuff you put in the secret settings file. 

This change only affects newly created game dirs. Existing games will continue to work as before. You can easily break your settings file into two on your own if you want though - just look in evennia/game_template/server/conf/ to see how it's done.
.
Griath

Tim Ashley Jenkins

unread,
Jun 4, 2017, 9:48:03 PM6/4/17
to Evennia
What a marvelous idea! I'll certainly get some use out of this once I have time to get more serious about MUD stuff. Thanks a ton!
Reply all
Reply to author
Forward
0 new messages