摘要:
django中得signals和操作系统(linux)中的signal完全是两会事,后者的signal是软件中断,提供一种处理异步事件得方法,信号是系统定义好的,可用作进程间传递消息得一种方法,而django中的信号只是一个普通的类,不能跨进程,看其代码更像一个。。。callback。。。django signal类定义在django/dispatch/dispatch.py中[python]view plaincopyprint?classSignal(object):def__init__(self,providing_args=None):#providing_args定义receive 阅读全文
摘要:
The Django authentication system provided in django.contrib.auth requires the end user to authenticate themselves using a username and password. However, it is often desireable to allow users to log in using an email address rather than a username. There are a few different ways to accomplish this a 阅读全文