开发者

Django-profile and django-registration get started

I've installed Django-registration开发者_如何学Python succesfully (form this tutorial).

So now I have a Django project "loginSystem", with in this map urls.py, settings.py, manage.py and _init_.py, so there is no app created but it works. The registration-folder is installed in my python-packages folder.

No I want to give to each users a unique profile, so I'll do this manual for django-profiles. The profiles folder is also installed in my python-packages folder.

But what do I have to create now to follow and start this django-profiles manual? Because they start speaking about a "/profiles/edit"-folder... So do I have to work in the dist-packages/profiles folder, or in my project-folder (without app)?

Thanks a lot, it asked me already a lot of time without result...


I don't see there they are talking about a /profiles/edit/ folder. The only thing you have to do is creating a /profiles/ folder in your TEMPLATE_DIR and put an edit_profile.html template there. Then you still need to hock up the url configuration to serve the edit view of the profiles app (they suggest a url somewhere like /profiles/edit/) and then you are good to go. Its basically the same as for django-registration except django-registration already create the url configuration for you.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜