‘WSGIRequest’ object has no attribute ‘session’ AT LOGIN

问题内容:

I’m trying to teach myself python\Django. This was built in Visual Studio with the Django starter site so all the settings.py etc where prebuilt and just added upon.

When I attempt to login to the site from the IIS Server I get


“AttributeError at /login/
‘WSGIRequest’ object has no attribute ‘session'”

although when I attempt to run it on my local machine from “python manage.py runserver” it runs just fine.

settings.py

1/3 | 2/3 | 3/3

问题评论:

    
Don’t post code as screenshots; that just makes it harder for us to help you.
    
Which version of Django are you using?
    
Post your urls.py and views.py modules.

原文地址:

https://stackoverflow.com/questions/47756738/wsgirequest-object-has-no-attribute-session-at-login

添加评论