mirror of
https://github.com/retspen/webvirtcloud
synced 2024-12-26 16:15:25 +00:00
18 lines
268 B
Python
18 lines
268 B
Python
from .models import AppSettings
|
|
|
|
|
|
class Settings:
|
|
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)
|