RE: Filefield upload_tol

2008-05-05 Thread Ben Eliott
lto:[EMAIL PROTECTED] On Behalf Of Mike H Sent: 05 May 2008 15:21 To: django-users@googlegroups.com Subject: Re: Filefield upload_tol I can replicate this by putting in a file path that does not exist in the HIP form. The validation fails for the file field but the error is not rendered. edi

RE: Filefield upload_tol

2008-05-05 Thread Ben Eliott
ango-users@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kenneth Gonsalves Sent: 05 May 2008 15:14 To: django-users@googlegroups.com Subject: Re: Filefield upload_tol On 05-May-08, at 7:22 PM, Ben Eliott wrote: > hip = models.FileField(upload_to='/tmp',core=True) try upload_to=

Re: Filefield upload_tol

2008-05-05 Thread Mike H
Maybe this will be of help: the MEDIA_URL is: 'http://example.com/tmp/ > (there is a further tmp subdir within that) and when the files save > correctly the admin form shows the link as the absolute path that was > written in upload_to clicking to http//example.com +appended with the

Re: Filefield upload_tol

2008-05-05 Thread Kenneth Gonsalves
On 05-May-08, at 7:22 PM, Ben Eliott wrote: > hip = models.FileField(upload_to='/tmp',core=True) try upload_to='tmp' <--- no '/' -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/code/ --~--~-~--~~~---~--~~ You received this

RE: Filefield upload_tol

2008-05-05 Thread Ben Eliott
link as the absolute path that was written in upload_to clicking to http//example.com +appended with the same absolute path 'http://www.example.com/absolute/path/to/file.txt'. -Original Message- From: django-users@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kenneth Go

Re: Filefield upload_tol

2008-05-05 Thread Kenneth Gonsalves
On 05-May-08, at 6:46 PM, Ben Eliott wrote: > Thanks for for your swift attention. > It reloads the same form with the message at the top: 'Please correct > the error below.' (although it doesn't actually show any error below). please paste your model here -- regards kg http://lawgon.livejou

RE: Filefield upload_tol

2008-05-05 Thread Ben Eliott
CTED] On Behalf Of Kenneth Gonsalves Sent: 05 May 2008 13:39 To: django-users@googlegroups.com Subject: Re: Filefield upload_tol On 05-May-08, at 5:33 PM, Ben Eliott wrote: > Hi, I'm getting started in the (highly enjoyable!) admin models - > FileField upload works when I give u

Re: Filefield upload_tol

2008-05-05 Thread Kenneth Gonsalves
On 05-May-08, at 5:33 PM, Ben Eliott wrote: > Hi, I'm getting started in the (highly enjoyable!) admin models - > FileField upload works when I give upload_to the full absolute > filepath. > However, as soon as I try and use MEDIA_ROOT in settings.py it baulks. what do you mean by 'baulks' -

Filefield upload_tol

2008-05-05 Thread Ben Eliott
Hi, I'm getting started in the (highly enjoyable!) admin models - FileField upload works when I give upload_to the full absolute filepath. However, as soon as I try and use MEDIA_ROOT in settings.py it baulks. Permissions are wide open, I've tried every combination of slashes & paths -- but it onl