Python Django : No module named security

前端 未结 8 1903
迷失自我
迷失自我 2021-01-01 12:29

When I deploy my project on an Ubuntu Server, using a virtualenv, I got this error :

[17/Sep/2014 22:29:00] \"GET / HTTP/1.1\" 500 59
Traceback (most recent          


        
8条回答
  •  孤城傲影
    2021-01-01 13:08

    I had the same problem when switching my project from another pc. As i didn't like very much the option given to remove the

    'django.middleware.security.SecurityMiddleware'

    I just created a new project and a new app, change the settings by hand and copy the rest of the files, and it worked :)

    I'm guessing it has something to do with the secretkey of the project.

提交回复
热议问题