Hi,
I'm relying on double slashes for certain things in my Django app and
it's fine on my maching, but just discovered the hosting environment
is reducing double slashes to single.
Any idea how I can keep them using mod_rewrite? I'm trying something
like
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ (
Hello,
Has anyone tried using plupload with django?
On top of generally missing how to do it exactly (server side of
course), I'm also curious about whether I can prevent storing files in
the filesystem while uploading - i.e. use some in-memory files. I need
it because I don't keep any images on
mbnail( (200,200), Image.ANTIALIAS)
> img.save(files_dict["image"], "JPG")
>
> At the end, change the reference to img
>
> files_dict["image"] = img
>
> and pass files_dict to the form instead of request.FILES
>
> On Wed, May 26, 2010 at 10:07 AM, Igo
size it to sensible dimensions just before that.
On May 26, 9:47 am, Kenneth Gonsalves wrote:
> On Wednesday 26 May 2010 13:07:50 Igor Rubinovich wrote:
>
> > This probably needs more explanation, otherwise I'll keep misleading
> > people into answering some question othe
s just before saving the form.
Another detail - I use ModelForm to reduce writing, so basically
everything is automated by Django.
So... now with this detail - would anyone have a suggestion?
Thanks,
Igor
On May 26, 9:00 am, Kenneth Gonsalves wrote:
> On Wednesday 26 May 2010 12:12:39 Igor R
Thanks a lot for this :)
But I really want to do what I said I want to do.
Does anyone has a suggestion?
On May 26, 12:23 am, Gonzalo Delgado wrote:
> El 25/05/10 19:12, Igor Rubinovich escribi :
>
>
>
>
>
> > I want to resize the uploaded file before saving a
Hi,
I want to resize the uploaded file before saving a form. I'd like to
do something like
img = request.FILES['image']
img.thumbnail( (200,200), Image.ANTIALIAS)
img.save(request.FILES['image'], "JPG")
photo_form = forms.PhotoEditForm(request.POST, request.FILES,
instance=photo)
photo_form.save
Hi,
I need an educated opinion on the following idea. It's supposed to
provide a (very-)weakly coupled architecture where any object that
inherits from ExtendableModel can be said to relate to one or many
objects that also inherit from it. This way I want to achieve at least
two things:
(1) No
Thanks for the comment Bill. I did define the profile myself :) and I
already see this thing working in test :)
On Jan 25, 5:10 pm, Bill Freeman wrote:
> Just to be clear, who defined get_profile() on the user object? If not you,
> then it may not be returning an instance of your "UserProfile" m
9 matches
Mail list logo