渲染时捕获ImportError:没有名为urls的模块

时间:2012-08-23 17:19:35

标签: django importerror

我收到此错误。

Caught ImportError while rendering: No module named urls

它指向他的路线。

<a href="{% url auth_login %}">{% trans "Log in" %}</a>

我正在使用django-registration。

我的urls.py

urlpatterns = patterns('',
    url(r'^$', direct_to_template, {"template": "home.html",}, name="home"),
    url(r'^accounts/', include('registration.urls')),
)

我已将其添加到INSTALLED_APPS中。

0 个答案:

没有答案
相关问题