Skip to content

Issues with new software #138

Description

@tobiasstrauss

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',

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions