摘要: from django.utils.functional import cached_property import datetime class User(object): birth_year = 1988 @cached_property def age(self): return datet 阅读全文
posted @ 2020-06-15 15:45 Fmaj-7 阅读(205) 评论(0) 推荐(0)
摘要: if installed_apps is None and hasattr(sys.modules[__name__], 'apps'): raise RuntimeError("You must supply an installed_apps argument.")print(sys.modul 阅读全文
posted @ 2020-06-15 14:32 Fmaj-7 阅读(423) 评论(0) 推荐(0)