Re: HttpResponseRedirect with https screws up Firefox?

2009-01-19 Thread csingley
On Jan 19, 9:05 pm, Malcolm Tredinnick wrote: > If the web server handling the Django requests is not the external web > server, but is proxied for by some other server (e.g. Apache facing the > outside world, passing off requests to a particular URL prefix to some > other webserver that is doin

HttpResponseRedirect with https screws up Firefox?

2009-01-19 Thread csingley
I've got a Django project set up behind an Apache SSL listener on port 443. Unfortunately, this seems to break HTTP redirects. For example, I have one view like this: """ @login_required def home(request): return HttpResponseRedirect('/user/%s/' % request.user) """ When a user hits this vie

Re: FileField; url oddness

2008-10-31 Thread csingley
On Oct 31, 7:05 pm, "Marty Alchin" <[EMAIL PROTECTED]> wrote: > My guess is that you need a trailing slash here. Without it, the > urljoin() function doesn't know 'reports' is a directory, so  it > strips 'reports' out and replaces it with the path from the database. > This is why your settings

FileField; url oddness

2008-10-31 Thread csingley
Hi, I've got a model defined like so: """ from django.conf import settings from django.db import models from django.core.files.storage import FileSystemStorage class ReportStorage(FileSystemStorage): @staticmethod def filepath(instance, filename): subdir = '/'.join((instance.accou