阅读背景:

在Django中,实用函数应该位于何处?

来源:互联网 

Where should utility functions live in Django? Functions like custom encrypting/decrypting a number, sending tweets, sending email, verifying object ownership, custom input validation, etc. Repetitive and custom stuff that I use in a number of places in my app. I'm definitely breaking DRY right now.Where should utility functions live in Django?




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: