Chapter 4 of the book: "Learning Website Development with Django" by
Ayman Hourieh offers a simple example of a login page.  The example
worked with an earlier svn version of Django, and now seems to fail
with the latest svn version (8728).

   Specifically, this pattern:

urlpatterns = patterns('',
       (r'^login/$', 'django.contrib.auth.views.login'),
)

triggers an error message:
DoesNotExist at /login/

Site matching query does not exist.

Request Method:         GET
Request URL:    http://127.0.0.1:8000/login/
Exception Type:         DoesNotExist
Exception Value:

Site matching query does not exist.

Exception Location:     C:\Python25\Lib\site-packages\django\django\db
\models\query.py in get, line 301
Python Executable:      C:\Python25\python.exe
Python Version:         2.5.2
Python Path:    ['C:\\pcode\\quotedrop', 'C:\\Python25\\lib\\site-
packages\\setuptools-0.6c8-py2.5.egg', 'C:\\Python25\\Lib\\site-
packages\\django', 'c:\\pcode\\quotedrop\\ C:\\pcode\\newscades', 'c:\
\pcode\\quotedrop\\ c:\\pcode\\quotedrop', 'c:\\pcode\\quotedrop\\ C:\
\pcode\\dive-into-python', 'C:\\Python25\\Lib\\site-packages\\django\
\django', 'c:\\pcode\\quotedrop\\ C:\\Python25\\Lib\\site-packages\
\django\\bin', 'c:\\pcode\\quotedrop\\ c:\\Python25\\Scripts', 'c:\
\pcode\\quotedrop', 'C:\\Windows\\system32\\python25.zip', 'C:\
\Python25\\DLLs', 'C:\\Python25\\lib', 'C:\\Python25\\lib\\plat-win',
'C:\\Python25\\lib\\lib-tk', 'C:\\Python25', 'C:\\Python25\\lib\\site-
packages', 'C:\\Python25\\Lib\\site-packages\\django\\django\\bin', 'c:
\\pcode\\quotedrop\\quotes', 'c:\\pcode\\quotedrop\\polls', 'c:\\pcode\
\pandorabots', 'c:\\pcode\\newscades', 'c:\\pcode\\dip\\py', 'c:\
\pcode']
Server time:    Fri, 29 Aug 2008 20:00:05 -0700

I assumed some kind of path problem created this message, but I can't
seem to find it.  Any ideas?

Thanks,
[EMAIL PROTECTED]

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to