mirror of
https://github.com/retspen/webvirtcloud.git
synced 2026-05-26 15:13:33 +00:00
19 lines
274 B
Python
19 lines
274 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.val)
|