1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-12-25 15:45:23 +00:00
webvirtcloud/appsettings/settings.py
2020-06-17 15:23:44 +06:00

18 lines
276 B
Python

from .models import AppSettings
class Settings(object):
pass
app_settings = Settings()
def get_settings():
try:
entries = AppSettings.objects.all()
except:
pass
for entry in entries:
setattr(app_settings, entry.key, entry.value)