English 中文(简体)
How to make multilingual login in django?
原标题:

I need to create multilingual website. But there is a problem with the login address. Do you know, how I can have /login/ for EN and /prihlasit/ for CS, etc... ?

I can specify just one login url in my settings.py

问题回答

It might be overkill for you, but one way is to use multiple site instances (one per language) as detailed in this SO answer.

I may be missing something here but can t /prihlasit/ be a login form in Czech which POSTs to /login/ when the user presses the submit button?





相关问题
ajax login using httpRequest?

I am trying to develop my login script to give feedback to the user if the login is valid or not. Basically if it isn t correct a div box will show saying its wrong, if its correct it will show its ...

Remotely authenticating client Windows user on demand

Suppose I am writing a server for a particular network protocol. If I know that the client is running on a Windows machine, is it possible for my server to authenticate the Windows user that owns the ...

Role/Permission based forms authorizing/authentication?

While looking into forms authorizing/authentication, I found that it is possible to do role based authorizing by adding an array of roles to a FormsAuthenticationTicket. That way I can write User....

热门标签