Django admin logging out on model save

微笑、不失礼 提交于 2021-01-29 04:27:06

问题


I'm running a Django app for my root public_html folder, and it's working fine. But there's a problem with one of my other apps. The problematic app is accessed through a redirect to a subdirectory (e.g. http://workingsite.com redirects to public_html, http://brokensite.com redirects to public_html/foo)

The problem is that the session expires whenever anything needs to be saved in the Django admin (either added or changed). If you try again, sometimes it works. This does not happen on my own machine when I run the Django dev server.

The timezone in both of the app settings.py files is the same, which is the same as the timezone in both of the .htaccess files.

The apps are almost identical, except the working app uses WYMEditor and the broken one uses TinyMCE as its text editor. Don't know why that would do anything to cause the problem, but I included it just in case. Also, I've made a custom CSS file for the admin backend in the broken app (again, shouldn't cause a problem).


回答1:


Seems to have been a configuration issue with the company I was hosting with - it's not happening anymore.



来源:https://stackoverflow.com/questions/3497148/django-admin-logging-out-on-model-save

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!