2010-07-02 39 views
1

我們可以將djangobb整合到Django應用程序中。意味着djangobb應該使用我們的django應用系統認證系統而不是自己的?Django中的Djangobb應用程序

+0

我用這一個了。 http://code.google.com/p/django-forum/ – 2010-07-02 10:48:35

回答

1

DjangoBB使用Django的驗證系統,你可以從它的代碼中看到:

views.py

def reply(request, thread): 
    """ 
    If a thread isn't closed, and the user is logged in, post a reply 
    to a thread. Note we don't have "nested" replies at this stage. 
    """ 
    if not request.user.is_authenticated(): 
     return HttpResponseRedirect('%s?next=%s' % (LOGIN_URL, request.path))