Hi,
Going through chapter 6 in the djangobook. Using 1.1 SVN-9368. I
think this chapter might be missing a step or two, or there's
something I'm overlooking.
In both the django development server and my apache server I can't
seem to show the created models 'Publiser, Author and Books'. All
models have
class Admin:
pass
Everything else is visible and working, Auth and Site pages both, log
in - log out, what have you. But no database models are showing.
Could I be missing something in my urls.py or settings.py?
currently in those files:
# urls.py
from django.conf.urls.defaults import *
from django.contrib import admin
from testproject.views import current_datetime, hours_ahead
admin.autodiscover()
urlpatterns = patterns('',
(r'^time/$', current_datetime),
(r'^time/plus/(\d{1,2})/$', hours_ahead),
# Example:
# (r'^testproject/', include('testproject.foo.urls')),
(r'^admin/doc/', include('django.contrib.admindocs.urls')),
(r'^admin/(.*)', admin.site.root),
)
#settings.py
...
...
TEMPLATE_LOADERS = (
'django.template.loaders.filesystem.load_template_source',
'django.template.loaders.app_directories.load_template_source',
'django.template.loaders.eggs.load_template_source',
)
MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
)
ROOT_URLCONF = 'testproject.urls'
TEMPLATE_DIRS = (
'C:/web/django/testproject/templates',
)
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.admindocs',
'django.contrib.admin',
'testproject.books',
)
Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---