Hi David, you might have stumbled over a problem I had when I first tried out the tutorial a week ago. I'm using an Oracle database back end, and on my first try of python manage.py syncdb, I also missed the prompt to create a superuser account. The problem was finally identified as a missing privilege for my identified database account. After granting missing privileges, and starting again, everything was fine.
What back end database are you using? Is dictionary DATABASES in settings.py correctly edited for your installed database and user account? Does the account have required privileges to create objects in your account's schema? HTH, Jon On Sunday, September 9, 2012 11:02:14 AM UTC+10, David Perez wrote: > > Hi, > > I am new to Django, I am actually starting its tutorial. On part 2 it > enables the admin site, but I can't log in to it. The following error comes > up (see at the bottom): > > If I remember correctly I did not get prompt to create a superuser when I > wrote *python manage.py syncdb*, so I am not sure if I do not have a > superuser. I tried to create it with *python manage.py createsuperuser > --username=david* but it is not working. > > I am most certain it is something simple...and I tried to follow the steps > as exact as I could. I appreciate your help. > > David > > > DoesNotExist at /admin/ > > Site matching query does not exist. > > Request Method:GETRequest URL:http://127.0.0.1:8000/admin/Django Version: > 1.4.1Exception Type:DoesNotExistException Value: > > Site matching query does not exist. > > Exception > Location:/Library/Python/2.7/site-packages/django/db/models/query.py > in get, line 366Python Executable:/usr/bin/pythonPython Version:2.7.1Python > Path: > > ['/Users/Dperezc/Desktop/Estudios independientes/Django/Proyecto1_Poll', > '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip', > '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7', > > '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin', > > '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac', > > '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages', > '/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python', > > '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk', > > '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old', > > '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload', > > '/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC', > '/Library/Python/2.7/site-packages'] > > Server time:Sat, 8 Sep 2012 18:45:28 -0600 > > > > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/VKu-Ajyx3R0J. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.