Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with new software #138

Open
tobiasstrauss opened this issue May 31, 2018 · 0 comments
Open

Issues with new software #138

tobiasstrauss opened this issue May 31, 2018 · 0 comments
Assignees

Comments

@tobiasstrauss
Copy link
Contributor

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',
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants