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
for some reason on a fresh local install following the readme and testing with ./manage.py runserver I get "user has no profile" when logging in for the first time.
am I missing something or is this a bug?
Environment:
Request Method: GET
Request URL: http://healthchecks.***.**/
Django Version: 1.9
Python Version: 3.4.3
Installed Applications:
('django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.humanize',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'compressor',
'djmail',
'hc.accounts',
'hc.api',
'hc.front',
'hc.payments')
Installed Middleware:
('django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'django.middleware.security.SecurityMiddleware',
'hc.accounts.middleware.TeamAccessMiddleware')
Traceback:
File "/www/sites/healthchecks.telsys.no/hc-venv/lib/python3.4/site-packages/django/core/handlers/base.py" in get_response
123. response = middleware_method(request)
File "/www/sites/healthchecks.telsys.no/healthchecks/hc/accounts/middleware.py" in process_request
13. profile = request.user.profile
File "/www/sites/healthchecks.telsys.no/hc-venv/lib/python3.4/site-packages/django/utils/functional.py" in inner
205. return func(self._wrapped, *args)
File "/www/sites/healthchecks.telsys.no/hc-venv/lib/python3.4/site-packages/django/db/models/fields/related_descriptors.py" in __get__
355. self.related.get_accessor_name()
Exception Type: RelatedObjectDoesNotExist at /
Exception Value: User has no profile.
The text was updated successfully, but these errors were encountered:
If you cannot upgrade now, you can create another superuser with manage.py createsuperuser. The new superuser will have a profile and will be able to log in.
for some reason on a fresh local install following the readme and testing with ./manage.py runserver I get "user has no profile" when logging in for the first time.
am I missing something or is this a bug?
The text was updated successfully, but these errors were encountered: