I got a fresh distribution (1.01) and installed it on RHEL4 linux/
apache/mod_python (in a subdomain)
python is 2.3.4
the trivial app /tim (from the book) works OK so most of the config
must be right
then tried to add the admin interface, modifying settings.py and ..

urls.py
-------

from django.conf.urls.defaults import *
from django.contrib import admin
from mysite.views import current_datetime
admin.autodiscover()

urlpatterns = patterns('',
  (r'^admin/(.*)', admin.site.root),
  (r'^time/$', current_datetime),
)

This just hangs.  Does not throw an error. An entry in the access_log
shows that it tried to redirect.

Then saw (in the book) another way to do it

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

This throws an error
..
  File "/usr/lib/python2.3/site-packages/django/core/urlresolvers.py",
line 198, in _get_urlconf_module
    self._urlconf_module = __import__(self.urlconf_name, {}, {}, [''])

ImportError: No module named urls

It appears that the first way mentioned is correct now.  Any
sugegstions as to why the redirect fails?

Thx.  Paul

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to