我在django项目中集成了djoser,我需要在帐户上创建一个条形customer_id,我如何做到这一点?
我一直在djoser上搜索,但是没有任何关于自定义激活或传递回调方法的内容。
发布于 2018-11-16 17:47:19
Djoser提供已激活信号。它是可用的,就像普通的django信号。这是无证但有效的。
示例用法
from django.dispatch import receiver
from djoser.signals import user_activated
@receiver(user_activated)
def my_handler(user, request):
# do what you need herehttps://stackoverflow.com/questions/53342373
复制相似问题