Re: How to format string on I18n

2012-01-04 Thread Krator Ado
msgid u"邀請已送到%(email)s" and add "# coding=utf-8" at the first line of your .py file. 2012/1/4 李 强 > Lack of a full stop,maybe. > > 在 2011-12-5,下午2:07, Tsung-Hsien 写道: > > > Hello > >I get the wrong message when type a string which needed to format > > such as > > > > msgid "An inviatation wa

Re: /?next= not redirect user

2012-01-27 Thread Krator Ado
you can do this by doing: If a page requires logined, like a uri "/blog/create/" which is routed to a function "create_blog()" , you can redirect this to login page followed by the url for example: # /your-project/blogs/views.py # suppose your User has a method named is_logined() to judge if the u