You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I followed the instructions here:http://pinaxproject.com/pinax/quick_start/ mainly:
pip install virtualenv
virtualenv mysiteenv
source mysiteenv/bin/activate
pip install pinax-cli
pinax start account mysite
cd mysite
npm install
pip install -r requirements.txt
./manage.py migrate
./manage.py loaddata sites
npm run dev
And when I tried to sign up a new user, after sending the form, I received this error:
Exception Type: AttributeError at /account/signup/
Exception Value: 'AnonymousUser' object has no attribute '_meta'
---------------------------------STACKTRACE COPY-------------------------------------
Environment:
Request Method: POST
Request URL: //localhost:3000/account/signup/
File "/Users/diegovargas/myproject/mysiteenv/lib/python3.6/site-packages/django/core/handlers/exception.py" in inner
34. response = get_response(request)
File "/Users/diegovargas/myproject/mysiteenv/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
126. response = self.process_exception_by_middleware(e, request)
File "/Users/diegovargas/myproject/mysiteenv/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
124. response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/Users/diegovargas/myproject/mysiteenv/lib/python3.6/site-packages/django/views/generic/base.py" in view
68. return self.dispatch(request, *args, **kwargs)
File "/Users/diegovargas/myproject/mysiteenv/lib/python3.6/site-packages/django/utils/decorators.py" in _wrapper
45. return bound_method(*args, **kwargs)
File "/Users/diegovargas/myproject/mysiteenv/lib/python3.6/site-packages/django/views/decorators/debug.py" in sensitive_post_parameters_wrapper
76. return view(request, *args, **kwargs)
File "/Users/diegovargas/myproject/mysiteenv/lib/python3.6/site-packages/django/utils/decorators.py" in _wrapper
45. return bound_method(*args, **kwargs)
File "/Users/diegovargas/myproject/mysiteenv/lib/python3.6/site-packages/django/utils/decorators.py" in _wrapped_view
142. response = view_func(request, *args, **kwargs)
File "/Users/diegovargas/myproject/mysiteenv/lib/python3.6/site-packages/django/utils/decorators.py" in _wrapper
45. return bound_method(*args, **kwargs)
File "/Users/diegovargas/myproject/mysiteenv/lib/python3.6/site-packages/django/views/decorators/cache.py" in _wrapped_view_func
44. response = view_func(request, *args, **kwargs)
File "/Users/diegovargas/myproject/mysiteenv/lib/python3.6/site-packages/account/views.py" in dispatch
151. return super(SignupView, self).dispatch(request, *args, **kwargs)
File "/Users/diegovargas/myproject/mysiteenv/lib/python3.6/site-packages/django/views/generic/base.py" in dispatch
88. return handler(request, *args, **kwargs)
File "/Users/diegovargas/myproject/mysiteenv/lib/python3.6/site-packages/account/views.py" in post
177. return super(SignupView, self).post(*args, **kwargs)
File "/Users/diegovargas/myproject/mysiteenv/lib/python3.6/site-packages/django/views/generic/edit.py" in post
142. return self.form_valid(form)
File "/Users/diegovargas/myproject/mysiteenv/lib/python3.6/site-packages/account/views.py" in form_valid
243. self.login_user()
File "/Users/diegovargas/myproject/mysiteenv/lib/python3.6/site-packages/account/views.py" in login_user
293. auth.login(self.request, user)
File "/Users/diegovargas/myproject/mysiteenv/lib/python3.6/site-packages/django/contrib/auth/init.py" in login
126. request.session[SESSION_KEY] = user._meta.pk.value_to_string(user)
File "/Users/diegovargas/myproject/mysiteenv/lib/python3.6/site-packages/django/utils/functional.py" in inner
214. return func(self._wrapped, *args)
Exception Type: AttributeError at /account/signup/
Exception Value: 'AnonymousUser' object has no attribute '_meta'
---------------------------------STACKTRACE COPY END-------------------------------------
Am I missing something?
The text was updated successfully, but these errors were encountered:
Hello, I followed the instructions here:http://pinaxproject.com/pinax/quick_start/ mainly:
pip install virtualenv
virtualenv mysiteenv
source mysiteenv/bin/activate
pip install pinax-cli
pinax start account mysite
cd mysite
npm install
pip install -r requirements.txt
./manage.py migrate
./manage.py loaddata sites
npm run dev
And when I tried to sign up a new user, after sending the form, I received this error:
Exception Type: AttributeError at /account/signup/
Exception Value: 'AnonymousUser' object has no attribute '_meta'
---------------------------------STACKTRACE COPY-------------------------------------
Environment:
Request Method: POST
Request URL: //localhost:3000/account/signup/
Django Version: 2.1.1
Python Version: 3.6.2
Installed Applications:
['django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.messages',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.staticfiles',
'bootstrapform',
'pinax.templates',
'account',
'pinax.eventlog',
'pinax.webanalytics',
'mysite']
Installed Middleware:
['django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware']
Traceback:
File "/Users/diegovargas/myproject/mysiteenv/lib/python3.6/site-packages/django/core/handlers/exception.py" in inner
34. response = get_response(request)
File "/Users/diegovargas/myproject/mysiteenv/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
126. response = self.process_exception_by_middleware(e, request)
File "/Users/diegovargas/myproject/mysiteenv/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
124. response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/Users/diegovargas/myproject/mysiteenv/lib/python3.6/site-packages/django/views/generic/base.py" in view
68. return self.dispatch(request, *args, **kwargs)
File "/Users/diegovargas/myproject/mysiteenv/lib/python3.6/site-packages/django/utils/decorators.py" in _wrapper
45. return bound_method(*args, **kwargs)
File "/Users/diegovargas/myproject/mysiteenv/lib/python3.6/site-packages/django/views/decorators/debug.py" in sensitive_post_parameters_wrapper
76. return view(request, *args, **kwargs)
File "/Users/diegovargas/myproject/mysiteenv/lib/python3.6/site-packages/django/utils/decorators.py" in _wrapper
45. return bound_method(*args, **kwargs)
File "/Users/diegovargas/myproject/mysiteenv/lib/python3.6/site-packages/django/utils/decorators.py" in _wrapped_view
142. response = view_func(request, *args, **kwargs)
File "/Users/diegovargas/myproject/mysiteenv/lib/python3.6/site-packages/django/utils/decorators.py" in _wrapper
45. return bound_method(*args, **kwargs)
File "/Users/diegovargas/myproject/mysiteenv/lib/python3.6/site-packages/django/views/decorators/cache.py" in _wrapped_view_func
44. response = view_func(request, *args, **kwargs)
File "/Users/diegovargas/myproject/mysiteenv/lib/python3.6/site-packages/account/views.py" in dispatch
151. return super(SignupView, self).dispatch(request, *args, **kwargs)
File "/Users/diegovargas/myproject/mysiteenv/lib/python3.6/site-packages/django/views/generic/base.py" in dispatch
88. return handler(request, *args, **kwargs)
File "/Users/diegovargas/myproject/mysiteenv/lib/python3.6/site-packages/account/views.py" in post
177. return super(SignupView, self).post(*args, **kwargs)
File "/Users/diegovargas/myproject/mysiteenv/lib/python3.6/site-packages/django/views/generic/edit.py" in post
142. return self.form_valid(form)
File "/Users/diegovargas/myproject/mysiteenv/lib/python3.6/site-packages/account/views.py" in form_valid
243. self.login_user()
File "/Users/diegovargas/myproject/mysiteenv/lib/python3.6/site-packages/account/views.py" in login_user
293. auth.login(self.request, user)
File "/Users/diegovargas/myproject/mysiteenv/lib/python3.6/site-packages/django/contrib/auth/init.py" in login
126. request.session[SESSION_KEY] = user._meta.pk.value_to_string(user)
File "/Users/diegovargas/myproject/mysiteenv/lib/python3.6/site-packages/django/utils/functional.py" in inner
214. return func(self._wrapped, *args)
Exception Type: AttributeError at /account/signup/
Exception Value: 'AnonymousUser' object has no attribute '_meta'
---------------------------------STACKTRACE COPY END-------------------------------------
Am I missing something?
The text was updated successfully, but these errors were encountered: