'WSGIRequest' object has no attribute 'user' Django admin

后端 未结 8 1276
感动是毒
感动是毒 2020-11-29 01:08

When I trying to access the admin page it gives me the following error:

System check identified no issues (0 silenced).
June 21, 2016 - 15:26:14
Django versi         


        
8条回答
  •  既然无缘
    2020-11-29 02:02

    Simple.....

    If you have picked the code from somewhere else(mean project is not created on your pc)... then their may be a different configuration of MIDDLEWARE in setting file in your code.....so you need to just replace that MIDDLLEWARE from the one that your django produces( create a throwaway project->go to setting files ---> copy that MIDDLEWARE part and paste it in the project in which you are getting error).

提交回复
热议问题