2013-02-20 68 views
1

标准的Django userena URL的期望用户名是在URL中使用Django的userena但没有用户:我怎么会在URL

/accounts/USER/ # for profile view 
/accounts/USER/edit/ # to edit the profile 

我的用户配置文件都将被关闭,所以我宁愿我的网址不包括用户:

/accounts/ # would show the profile view (or signin if they aren't logged in) 
/accounts/edit/ # to edit the profile 

有没有一种简单的方法来做到这一点?

回答

1

浏览他们的文档,它看起来不像它。您需要为此编写自己的url/views。

+0

显然,正如girasquid所指出的那样,没有内置的东西 - 主要是因为它们在各个地方对某些路径进行了硬编码,但也有一些其他假设。分叉我自己的副本,并破解它的工作。 – machomeautoguy 2013-02-25 17:29:30