I've just found the Pinax ecosystem, it looks great. Thank you all for your work.
I've created the 'account' starter project, and when I sign-up for a new account after I click the submit button, I get the following error: 'AnonymousUser' object has no attribute '_meta'. Please help me understand what I am missing, as the traceback seems to be entirely within the Django Code.
Hello!
I've just found the Pinax ecosystem, it looks great. Thank you all for your work.
I've created the 'account' starter project, and when I sign-up for a new account after I click the submit button, I get the following error: 'AnonymousUser' object has no attribute '_meta'. Please help me understand what I am missing, as the traceback seems to be entirely within the Django Code.
Thanks, Evan
.. TRACEBACK: Environment: Django Version: 2.2.4 Python Version: 3.7.3
Request Method: POST Request URL: http://localhost:8000/account/signup/
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', 'newapp'] 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 "newapp/lib/python3.7/site-packages/django/core/handlers/exception.py" in inner
File "newapp/lib/python3.7/site-packages/django/core/handlers/base.py" in _get_response
File "newapp/lib/python3.7/site-packages/django/core/handlers/base.py" in _get_response
File "newapp/lib/python3.7/site-packages/django/views/generic/base.py" in view
File "newapp/lib/python3.7/site-packages/django/utils/decorators.py" in _wrapper
File "newapp/lib/python3.7/site-packages/django/views/decorators/debug.py" in sensitive_post_parameters_wrapper
File "newapp/lib/python3.7/site-packages/django/utils/decorators.py" in _wrapper
File "newapp/lib/python3.7/site-packages/django/utils/decorators.py" in _wrapped_view
File "newapp/lib/python3.7/site-packages/django/utils/decorators.py" in _wrapper
File "newapp/lib/python3.7/site-packages/django/views/decorators/cache.py" in _wrapped_view_func
File "newapp/lib/python3.7/site-packages/account/views.py" in dispatch
File "newapp/lib/python3.7/site-packages/django/views/generic/base.py" in dispatch
File "newapp/lib/python3.7/site-packages/account/views.py" in post
File "newapp/lib/python3.7/site-packages/django/views/generic/edit.py" in post
File "newapp/lib/python3.7/site-packages/account/views.py" in form_valid
File "newapp/lib/python3.7/site-packages/account/views.py" in login_user
File "newapp/lib/python3.7/site-packages/django/contrib/auth/init.py" in login
File "newapp/lib/python3.7/site-packages/django/utils/functional.py" in inner
Exception Type: AttributeError at /account/signup/ Exception Value: 'AnonymousUser' object has no attribute '_meta'