Re: X-Sendfile

2009-03-02 Thread Katja L.
OK, I found the error ... Our student worker forgot to enable xsendfile ;). Thanks! Katja --~--~-~--~~~---~--~~ 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@googl

X-Sendfile

2009-03-02 Thread Katja L.
Hey, it's not really a Django question but maybe someone has an idea :). I have the following method: def sendfile(request, dataset_id): ds = DataSet.objects.select_related().get(id=dataset_id) filename = ds.table_information.object_name response = HttpResponse() response['X-Sendfile']

Search functionality over the DB

2008-10-16 Thread Katja L.
Hi, I need to implement a search over a text field I have ... The user can enter multiple values into a search box and I need to do kind of full text search in one field of the database. E.G. class DataSet(models.Model): ... abstract = models.TextField() ... Let's say the user enters "jan

Re: Query over multivalue relationships

2008-10-15 Thread Katja L.
> Hmm, that's weird. Does it work if you remove the select_related()? No, it doesn't ... I've made a workaround like this ... ds = DataSet.objects.select_related().filter(coverage__geo_temp_coverage__ending_temporal_coverage_date__lte=datetime.date(int(max_year), 12,31)).order_by('dataset_id_nr'

Re: Query over multivalue relationships

2008-10-15 Thread Katja L.
> DataSet.objects.select_related().filter(coverage__geo_temp_coverage__ending_temporal_coverage_date__year__lt=max_year).order_by('dataset_id_nr') Thanks a lot :)! This helps more or less ;), because now I get a Field Error I don't understand ... "Join on field 'ending_temporal_coverage_date' not