Hi All, i am very new bie of Django, i have started work on before 3 days. I am following DJango book. I am playing with 6 chapter "Using the admin interface" In my urls.py file i set the url for admin
from django.conf.urls.defaults import * urlpatterns = patterns('', # Example: # (r'^blog/', include('blog.foo.urls')), (r"^admin/", include("django.contrib.admin.urls")), (r"^pro/book/$", "blog.blogapp.views.bookentry"), ) but when i am running in browser http://127.0.0.1:8000/admin its giving me error File "/usr/lib/python2.4/site-packages/django/core/servers/ basehttp.py", line 277, in run self.result = application(self.environ, self.start_response) File "/usr/lib/python2.4/site-packages/django/core/servers/ basehttp.py", line 634, in __call__ return self.application(environ, start_response) File "/usr/lib/python2.4/site-packages/django/core/handlers/ wsgi.py", line 239, in __call__ response = self.get_response(request) File "/usr/lib/python2.4/site-packages/django/core/handlers/ base.py", line 67, in get_response response = middleware_method(request) File "/usr/lib/python2.4/site-packages/django/middleware/common.py", line 72, in process_request urlresolvers.resolve("%s/" % request.path_info) File "/usr/lib/python2.4/site-packages/django/core/urlresolvers.py", line 244, in resolve return get_resolver(urlconf).resolve(path) File "/usr/lib/python2.4/site-packages/django/core/urlresolvers.py", line 180, in resolve sub_match = pattern.resolve(new_path) File "/usr/lib/python2.4/site-packages/django/core/urlresolvers.py", line 178, in resolve for pattern in self.urlconf_module.urlpatterns: File "/usr/lib/python2.4/site-packages/django/core/urlresolvers.py", line 197, in _get_urlconf_module self._urlconf_module = __import__(self.urlconf_name, {}, {}, ['']) ImportError: No module named urls and when i checked manually in that directory there were no urls.py file in usr/lib/python2.4/site-packages/django/contrib/admin/ how may i resolve that problem. i followed each and every steps of Django book Thanks --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---