Different sessions for admin and applications in Django

后端 未结 3 458
广开言路
广开言路 2021-01-02 02:40

I\'d like to have different sessions for the Django admin interface and applications themselves to be able to login as admin to the admin interface and as a standard user to

3条回答
  •  梦毁少年i
    2021-01-02 03:18

    The way I have solved this in the past is to have 2 different urls. www.example.com and admin.example.com. As the sessions are stored in cookies, and the cookies being domain specific you can use both at the same time.

提交回复
热议问题