UserProfile matching query does not exist

2,161 views
Skip to first unread message

seb...@gmail.com

unread,
Aug 5, 2013, 3:24:13 PM8/5/13
to edx-...@googlegroups.com
Hi,

When I go to http://192.168.20.40:8000/dashboard it outputs :

DoesNotExist at /dashboard

UserProfile matching query does not exist.
Request Method: GET
Request URL: http://192.168.20.40:8000/dashboard
Django Version: 1.4.5
Exception Type: DoesNotExist
Exception Value:
UserProfile matching query does not exist.
Exception Location: /home/vagrant/.virtualenvs/edx-platform/local/lib/python2.7/site-packages/django/db/models/query.py in get, line 366
Python Executable: /home/vagrant/.virtualenvs/edx-platform/bin/python
Python Version: 2.7.3


Please could you tell me what's wrong?

Thanks in advance!

Harish Narayanan

unread,
Aug 5, 2013, 4:29:12 PM8/5/13
to seb...@gmail.com, edx-...@googlegroups.com
Hi,

This happens when you try to login as the superuser you setup initially---as this user doesn't have an associated profile. Go to /logout , logout as this superuser, and set up another account as a student. You should not see this error then.

Harish

Chris Dodge

unread,
Aug 5, 2013, 4:50:07 PM8/5/13
to edx-...@googlegroups.com, seb...@gmail.com
Yes, this is correct. Someone should update the FAQ because people ask this question often. Thx.

irfan...@gmail.com

unread,
Sep 20, 2015, 12:36:47 AM9/20/15
to General Open edX discussion, seb...@gmail.com
I have created super user from command line and trying to delete normal signed up users from /admin side but have this error all the time.

It is really annoying, I searched all forums for solution. I couldn't find one yet.


5 Ağustos 2013 Pazartesi 15:50:07 UTC-5 tarihinde Chris Dodge yazdı:

Clinton Blackburn

unread,
Sep 20, 2015, 6:43:13 PM9/20/15
to General Open edX discussion
The fullstack docs detail how to create a superuser with a profile: https://github.com/edx/configuration/wiki/edX-Managing-the-Full-Stack.

Maitreya Verma

unread,
Aug 13, 2017, 5:16:05 PM8/13/17
to General Open edX discussion
I am working on another project and I faced this issue. I want to allow superuser to log in to the website. Could any of you find a way to allow it to happen?

Clinton Blackburn

unread,
Aug 14, 2017, 6:45:59 PM8/14/17
to General Open edX discussion
See the notes on the manage_user management command at https://openedx.atlassian.net/wiki/spaces/OpenOPS/pages/60227913/Managing+OpenEdX+Tips+and+Tricks.

The problem you are facing is a result of creating a user without an associated UserProfile. You can either use the management command above to update the user or login via Django admin (which does not rely on the profile), find the user, and re-save it (after making a minor change to the profile).
Reply all
Reply to author
Forward
0 new messages