Wednesday, March 2, 2016

how to implement lazy settings as django setting

I need to implement a lazy setting like django setting that could be call globally in several apps but get his values from a model in database.

I have some settings that need to be change by the admin user, so my apps expect that settings but can not loaded on django setup because needs populate with fields in db or something that user can change without touching code.  So I thing I can implement a lazy setting that use database in request process time and cached the result.

So do you have some idea how to implement that.

--
"La utopía sirve para caminar" Fernando Birri



--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAG%2B5VyN8axAnC_jQuDdZ%2BLXTMe4hkVcYuityWc0t8sqE9WEyEQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment