Working examples in djangobook /1.0 chapter06

Can not get the Admin Interface to display using suggested urls.py /
settings.py

#urls
from django.conf.urls.defaults import *

urlpatterns = patterns('',
    (r'^admin/', include('django.contrib.admin.urls')),
)

#settings.py - # snip

ROOT_URLCONF = 'mysite.urls'

TEMPLATE_DIRS = (
    # Put strings here, like "/home/html/django_templates" or
"C:/www/django/templates".
    # Always use forward slashes, even on Windows.
    # Don't forget to use absolute paths, not relative paths.
)
MIDDLEWARE_CLASSES = (
    'django.middleware.common.CommonMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.middleware.doc.XViewMiddleware',
)

INSTALLED_APPS = (
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.auth',
    'django.contrib.admin',
#    'django.contrib.admindocs',
    'mysite.books',
)
Fedora 8 -

 django.VERSION
(1, 0, 2, 'final', 0)
['django.contrib.contenttypes', 'django.contrib.sessions',
'django.contrib.auth', 'django.contrib.admin', 'mysite.books']

Funny when I used admindocs, I could get the login screen but then it failed

Suggestions ?
Change versions of python or django ?

Portion of output ---------


Request URL: http://127.0.0.1:8000/admin/  Exception Type: ImportError
 Exception
Value:

No module named urls

 Exception Location:
/usr/lib/python2.5/site-packages/django/core/urlresolvers.py
in _get_urlconf_module, line 198  Python Executable: /usr/bin/python  Python
Version: 2.5.1  Python Path: ['/home/pwc/django/mysite',
'/usr/lib/python25.zip', '/usr/lib/python2.5',
'/usr/lib/python2.5/plat-linux2', '/usr/lib/python2.5/lib-tk',
'/usr/lib/python2.5/lib-dynload', '/usr/lib/python2.5/site-packages',
'/usr/lib/python2.5/site-packages/Numeric',
'/usr/lib/python2.5/site-packages/PIL',
'/usr/lib/python2.5/site-packages/gst-0.10',
'/usr/lib/python2.5/site-packages/gtk-2.0']

--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to