Sonictherocketman / Microblogger

An open social networking service utilizing the Open Microblog Standard
http://openmicroblog.com
Other
2 stars 0 forks source link

Add settings to external file so that they can be modified and accessed separately #8

Open Sonictherocketman opened 9 years ago

Sonictherocketman commented 9 years ago

Currently the values for settings are hard coded into the microblogger.py file.

Break these options out into their own settings file and make a script to read and write these values.

DEBUG = True CACHE = '/tmp/microblog/' SETTINGS = os.path.expanduser('~/.microblogger_settings.json') ROOT_DIR = '/var/www/microblogger/' {{ more to come}}

Also need to break out the settings management into its own manager (see cachemanager).

Sonictherocketman commented 9 years ago

Added settings manager. External settings file still not supported.

Sonictherocketman commented 9 years ago

Config script handles the settings now. Defaults included. Do we still want a settings file? How would it be reloaded?