-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
I setup a fresh OS and tried to install ScripNet again which didn't work. I had to change some things in the code to make scriptnet running.
The error messages:
File "/home/tobias/devel/projects/java_htr/competition/scriptnet/competition/new_checkout/competitions.bak/scriptnet/competitions/views.py", line 344, in submit if not request.user.is_authenticated(): TypeError: 'bool' object is not callable
and
AttributeError: 'WSGIRequest' object has no attribute 'user'
and
ImportError: Module "django.contrib.auth.middleware" does not define a "SessionAuthenticationMiddleware" attribute/class
This is what I did:
- scriptnet/competitions/views.py line 51 and 344: request.user.is_authenticated() to request.user.is_authenticated
- scriptnet/scriptnet/settings.py replace MIDDLEWARE_CLASSES by MIDDLEWARE and remove 'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
Jaquedeveloper
Metadata
Metadata
Assignees
Labels
No labels