发布于 2013-01-17 00:43:40
如果我没理解错的话,你想从你的基于web的程序中显示用户配置文件,而不是OSQA配置文件,对吗?
我看到的最简单的方法是将用户从正确的Django视图重定向。在论坛/视图/users.py上,转到第340行,即user_profile视图。下面是该方法的第一行代码:
profileUrl = 'http://www.hamcodi.ir/members/' + str(user.id) + '/' + user.username + '/'
return HttpResponseRedirect(profileUrl)然后对你的程序进行适当的处理。
https://stackoverflow.com/questions/12191006
复制相似问题