1

このエラーが発生します。

Caught ImportError while rendering: No module named urls

そしてそれは彼のラインを指しています。

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

私はジャンゴ登録を使用しています。

私のurls.py

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

そして、INSTALLED_APPS に追加しました。

4

0 に答える 0