python - django-user-accounts package does not load the account/signup.html template -
i trying use django-user-accounts package pinax. new django, , stuck @ point, i've been struggling hours still cannot display account/signup page.
so, have following line in urls.py:
url(r"^account/", include("account.urls")),
then, went check in urls.py of account package, , countains line.
url(r"^signup/$", signupview.as_view(), name="account_signup"),
so, when give address: 127.0.0.1:8000/account/signup/
in browser, think django should give signupview. don't know "as_view()" function does. second argument of url() should function returns htmlresponse. went see in views.py of account package: class signupview has attribute
template_name = "account/signup.html"
i expect htmlresponse returned signupview.as_view() using template doesnt. instead, got error:
typeerror @ /
'str' object not callable
request method: request url: http://127.0.0.1:8000/ django version: 1.6.1 exception type: typeerror exception value:
'str' object not callable
exception location: /usr/lib/python2.7/dist-packages/django/core/handlers/base.py in get_response, line 112 python executable: /usr/bin/python python version: 2.7.6
note default behaviour of django-user-accounts, have not modified anything. guess missing dependency or something, cannot interprete error message. way, returned error exaclty same when give address in browser 127.0.0.1:8000/
. here expect receive error because have no home page yet, still, why signupview try html of root page ???
i stuck here , have no idea how can try debug this. hints more welcome.
so, problem has been solved comment of bilou06, problem caused line in urls.py of project, because root of project pointing indexview did not exist.
Comments
Post a Comment