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

19 lines
268 B
Python
Raw Normal View History

2020-06-17 09:15:58 +00:00
from .models import AppSettings
2020-10-14 08:37:46 +00:00
class Settings:
2020-06-17 09:15:58 +00:00
pass
app_settings = Settings()
def get_settings():
try:
entries = AppSettings.objects.all()
except:
pass
for entry in entries:
2020-06-17 09:23:44 +00:00
setattr(app_settings, entry.key, entry.value)