[英]What is the best approach to implement configuration app with Django?
I need to program kind of configuration registry for Django-based application. 我需要为基于Django的应用程序编程一种配置注册表。
Requirements: 要求:
param_name
: param_value
structure param_name
: param_value
结构 Any ideas or suggestions would be appreciated. 任何想法或建议,将不胜感激。
I have found djblets.siteconfig very useful. 我发现djblets.siteconfig非常有用。 Works great with the Admin app, and very easy to use.
与管理应用程序配合使用非常好,并且非常易于使用。 Highly recommended.
强烈推荐。
有一段时间(一年前),我使用dbsettings来通过管理界面访问某种业务配置,但是我不能说它今天如何适合。
I think you'll have trouble if you make other apps depend (at interpretation/app-loading time) on values set in your config app. 我认为,如果使其他应用程序(在解释/应用程序加载时)依赖于配置应用程序中设置的值,将会遇到麻烦。 Can you use some kind of placeholder value in Python code at interpretation time, and then pull in the real config data on the post_syncdb signal?
您可以在解释时在Python代码中使用某种占位符值,然后在post_syncdb信号上提取实际的配置数据吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.