No longer need to distribute a database file. Each user will run their syncdb script and start with a clean slate. Updated installation instructions in README.

This commit is contained in:
Greg Taylor 2007-04-25 19:39:15 +00:00
parent eda1753740
commit 0fc89247aa
6 changed files with 56 additions and 10 deletions

View file

@ -8,3 +8,11 @@ def get_configvalue(configname):
Retrieve a configuration value.
"""
return ConfigValue.objects.get(conf_key=configname).conf_value
def set_configvalue(configname, newvalue):
"""
Sets a configuration value with the specified name.
"""
conf = ConfigValue.objects.get(conf_key=configname)
conf.conf_value = newvalue
conf.save()