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

Crashed as soon as started #3

Open
chandraveerr opened this issue Jun 28, 2018 · 0 comments
Open

Crashed as soon as started #3

chandraveerr opened this issue Jun 28, 2018 · 0 comments

Comments

@chandraveerr
Copy link

After running on local host, as soon as you click on login, register or anything application crashes.
Environment:

Request Method: POST
Request URL: http://127.0.0.1:8080/accounts/login/

Django Version: 2.0.6
Python Version: 3.6.5
Installed Applications:
['django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.sites',
'questions',
'crispy_forms',
'registration']
Installed Middleware:
[]

Traceback:

File "/Users/chandraveer/Documents/MCQ test app/my_virtual_env/lib/python3.6/site-packages/django/core/handlers/exception.py" in inner
35. response = get_response(request)

File "/Users/chandraveer/Documents/MCQ test app/my_virtual_env/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
128. response = self.process_exception_by_middleware(e, request)

File "/Users/chandraveer/Documents/MCQ test app/my_virtual_env/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
126. response = wrapped_callback(request, *callback_args, **callback_kwargs)

File "/Users/chandraveer/Documents/MCQ test app/my_virtual_env/lib/python3.6/site-packages/django/views/generic/base.py" in view
69. return self.dispatch(request, *args, **kwargs)

File "/Users/chandraveer/Documents/MCQ test app/my_virtual_env/lib/python3.6/site-packages/django/utils/decorators.py" in _wrapper
62. return bound_func(*args, **kwargs)

File "/Users/chandraveer/Documents/MCQ test app/my_virtual_env/lib/python3.6/site-packages/django/views/decorators/debug.py" in sensitive_post_parameters_wrapper
76. return view(request, *args, **kwargs)

File "/Users/chandraveer/Documents/MCQ test app/my_virtual_env/lib/python3.6/site-packages/django/utils/decorators.py" in bound_func
58. return func.get(self, type(self))(*args2, **kwargs2)

File "/Users/chandraveer/Documents/MCQ test app/my_virtual_env/lib/python3.6/site-packages/django/utils/decorators.py" in _wrapper
62. return bound_func(*args, **kwargs)

File "/Users/chandraveer/Documents/MCQ test app/my_virtual_env/lib/python3.6/site-packages/django/utils/decorators.py" in _wrapped_view
142. response = view_func(request, *args, **kwargs)

File "/Users/chandraveer/Documents/MCQ test app/my_virtual_env/lib/python3.6/site-packages/django/utils/decorators.py" in bound_func
58. return func.get(self, type(self))(*args2, **kwargs2)

File "/Users/chandraveer/Documents/MCQ test app/my_virtual_env/lib/python3.6/site-packages/django/utils/decorators.py" in _wrapper
62. return bound_func(*args, **kwargs)

File "/Users/chandraveer/Documents/MCQ test app/my_virtual_env/lib/python3.6/site-packages/django/views/decorators/cache.py" in _wrapped_view_func
44. response = view_func(request, *args, **kwargs)

File "/Users/chandraveer/Documents/MCQ test app/my_virtual_env/lib/python3.6/site-packages/django/utils/decorators.py" in bound_func
58. return func.get(self, type(self))(*args2, **kwargs2)

File "/Users/chandraveer/Documents/MCQ test app/my_virtual_env/lib/python3.6/site-packages/django/contrib/auth/views.py" in dispatch
66. return super().dispatch(request, *args, **kwargs)

File "/Users/chandraveer/Documents/MCQ test app/my_virtual_env/lib/python3.6/site-packages/django/views/generic/base.py" in dispatch
89. return handler(request, *args, **kwargs)

File "/Users/chandraveer/Documents/MCQ test app/my_virtual_env/lib/python3.6/site-packages/django/views/generic/edit.py" in post
142. return self.form_valid(form)

File "/Users/chandraveer/Documents/MCQ test app/my_virtual_env/lib/python3.6/site-packages/django/contrib/auth/views.py" in form_valid
95. auth_login(self.request, form.get_user())

File "/Users/chandraveer/Documents/MCQ test app/my_virtual_env/lib/python3.6/site-packages/django/contrib/auth/init.py" in login
131. if SESSION_KEY in request.session:

Exception Type: AttributeError at /accounts/login/
Exception Value: 'WSGIRequest' object has no attribute 'session'

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

1 participant