Justin, More, different information -- On further investigation, I've discovered that it's actually hanging when I try to do a search: > bbpoly = GEOSGeometry('POLYGON(( 38.302807 -122.867744, > 38.482792 -122.867744, 38.482792 -122.633660, 38.302807 -122.633660, > 38.302807 -122.867744))') > art_list = Article.objects.filter(point__within=bbpoly) This is on a MySQL database... we're going to Postgres imminently. That works if I do the search from the command line, but not if I am doing it via http/views.py > from django.contrib.gis.db import models > from django.contrib.gis.geos import * > > class Article(models.Model): > id = models.AutoField(primary_key=True) > title = models.CharField(max_length=300, blank=True) > point = models.PointField(blank=True) > ...... > objects = models.GeoManager() > > class Meta: > db_table = u'article' > app_label = u'obs' > One thing that is different between the http version and the command line version is that I'm setting up the environment "by hand" in the script, like this. I don't know if that could have anything to do with it. > import sys > sys.path.append('/var/www/vhosts/obsidian.numenet.com/django/obsidian') > > from django.core.management import setup_environ > import settings > setup_environ(settings)
Any idea how I can debug this? I've got to get it working by Monday! Trying not to panic... Liam Justin Bronn wrote: > >> However, if I access the application over http, the server hangs at >> exactly that spot. No error logged. >> If I comment out the line, everything runs fine. >> > > You're going to have to provide more details on exactly what "http" > means here. How are you deploying, e.g., mod_wsgi, mod_python, > fastcgi? What's the configuration look like? What's the web server, > it's version? > > -Justin > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---