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:
parent
eda1753740
commit
0fc89247aa
6 changed files with 56 additions and 10 deletions
|
|
@ -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()
|
||||
Loading…
Add table
Add a link
Reference in a new issue