Monday, August 2, 2010

urlpattern problem !

i have an another problem

my urlpattern is :

from django.conf.urls.defaults import *

urlpatterns = patterns('',


(r'^admin/', include('django.contrib.admin.urls')),
)
even i try with this code again

from django.conf.urls.defaults import *

# Uncomment the next two lines to enable the admin:

from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
# Example:
# (r'^mysite/', include('mysite.foo.urls')),


# Uncomment the admin/doc line below and add
'django.contrib.admindocs'
# to INSTALLED_APPS to enable admin documentation:
# (r'^admin/doc/', include('django.contrib.admindocs.urls')),


# Uncomment the next line to enable the admin:
(r'^admin/', include(admin.site.urls)),
)

but when i login in my admin page i cant see all of my objects( like
Publisher, Author, ...)
http://www.djangobook.com/en/1.0/chapter06/
i just have groups , users , sites .
can you help me

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

No comments:

Post a Comment