atik
unread,Apr 3, 2009, 4:13:45 PM4/3/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
hi! I am new to dijango and i have the tutorial of official release is
helping me. while part 1 of the tutorial is done nicely, but when i
have tried to part 2, that is Activate the admin site, i have be
getting hard time. It is telling me No module named admin.site.urls. I
have configured urls.py like this-
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)),
)
And it is in the directory My documents->mysite. I have getting error
in the line
(r'^admin/', include(admin.site.urls)),
What can i do? Please help me.