No more input on this for a while so I tried various moving the
directories around.
My supposition is that it can't find the part of the distribution
containing the admin code.

vhost.conf (on a subdomain)
---------------
<Location "/">
  SetHandler python-program
  PythonHandler django.core.handlers.modpython
  SetEnv DJANGO_SETTINGS_MODULE mysite.settings
  PythonPath "['/var/www/test','/var/www/test/django'] + sys.path"
  PythonDebug On
</Location>

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),
)


mysite directory is at /var/www/test
django distribution is in the same place

Is the problem with the PythonPath as:

/time app in myuysite runs OK
/foo gives a 404 error via django debug
/admin just hangs (blank browser - nothing appears on apache error
log.)

Any suggestions pls?

Paul

On Nov 18, 12:08 pm, "Karen Tracey" <kmtra...@gmail.com> wrote:
> On Tue, Nov 18, 2008 at 3:39 AM, paultanner <p...@virtual-techno.com> wrote:
>
> > 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.
>
> A cut-n-paste of what you're seeing the the log might be enlightening.
>
> The other urlpattern you find is old, and will not work with 1.0.x
>
> Karen- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to