在此服务器上找不到请求的URL / accounts / registration /

时间:2018-06-26 14:38:47

标签: python django django-urls

我的代码有什么问题?我有我的项目的下一个结构。

  

/ project / apps / accounts

  

/project/project/urls.py

我有url(r'^accounts/', include('apps.accounts.urls')), 在/project/apps/accounts/urls.py中,我有url(r'^registration/', include('registration.backends.hmac.urls')), 但是当我尝试http://localhost:8000/accounts/registration/时  我遇到下一个错误The requested URL /accounts/registration/ was not found on this server.,请帮助我。

1 个答案:

答案 0 :(得分:1)

[{\"Rating\":\"\"}] 变量放入您的app_name='accounts'文件中