Re: Problems loading fixtures using loaddata

2007-12-05 Thread Divan Roulant
u to point me in the right direction. Thanks! Divan On Nov 29, 8:48 pm, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > On Nov 27, 2007 8:12 PM, Divan Roulant <[EMAIL PROTECTED]> wrote: > > > > > For those of you who are using loaddata, should loaddata be

Problems loading fixtures using loaddata

2007-11-27 Thread Divan Roulant
Hello! I outputted an xml file with the "dumpdata" command using manage.py. I didn't dump data per model, I just dumped it in a single file that I named "initial_data.xml". Now, when I try to upload it with "loaddata", it fails. Sometimes, it doesn't find paths (my project handles pictures),

Re: Problem uploading several files (images) using a single form

2007-11-05 Thread Divan Roulant
Hmm... no reply. Its either a very dumb question or I explained it very bad! I though I would reactivate it since I didn't find out yet... Thanks! Divan On Nov 4, 5:57 am, Divan Roulant <[EMAIL PROTECTED]> wrote: > Hello, > > I need to upload several pictures from a single form

Problem uploading several files (images) using a single form

2007-11-04 Thread Divan Roulant
Hello, I need to upload several pictures from a single form. Then (I think) I need to loop through the list of FILES and bind the data to a form and save it. However, my code below doesn't work. No images are saved and all I get is the data from the other fields of the last picture, saved the

Re: Is it possible to debug a view using breakpoints in Eclipse?

2007-10-28 Thread Divan Roulant
: > I assume you are using the development server to test -- have you included > --noreload among the arguments to runserver when you run under > Eclipse/PyDev? That's what you need in order for breakpoints to work. > > Karen > > On 10/27/07, Divan Roulant <[EMAIL PROTECTED]>

Is it possible to debug a view using breakpoints in Eclipse?

2007-10-27 Thread Divan Roulant
Hello, I would like to debug a view and even though I set breakpoints in it, the debugger doesn't stop on them when the execution is required by the Web browser. I'm using Eclipse with PyDev and everything seems configured appropriately. Since I'm pretty new to Web dev, maybe there's something

Request data is lost between two views

2007-10-16 Thread Divan Roulant
Hello, I loose request data when I call a view with reverse from a previous view. Here is what I do: def my_first_view(request): # Processing here return HttpResponseRedirect(reverse('my_second_view, args=(request,))) def my_second_view(request): # I would like to processing

Re: nesh thumbnails error after moving to unicode

2007-10-06 Thread Divan Roulant
Thank you Chris, for the record, Satchmo changed kw = kw.lower() into kw = kw.lower().encode('ascii') in thumbnail.py. That was causing me trouble. Thanks again! Divan On Oct 5, 12:40 pm, "Chris Moffitt" <[EMAIL PROTECTED]> wrote: > We've made mods to the thumbnail

Re: nesh thumbnails error after moving to unicode

2007-10-05 Thread Divan Roulant
I get the same error since the latest svn upgrade. I tried adding a "u" before the thumbnail dimensions to make the string unicode in the template but it doesn't work. Ex.: I also tried adding the encoding instructions #!/usr/bin/python # -*- coding: utf-8 -*- on top of the thumbnail.py

Re: Problem with nesh.thumbnail

2007-10-04 Thread Divan Roulant
Thank you so much Jake for pointing me on this valuable source. That was the problem. Divan On Oct 4, 12:11 pm, jake elliott <[EMAIL PROTECTED]> wrote: > hi divan, > > Divan Roulant wrote: > > "'myproject.thumbnail' is not a valid tag library: Could not load

Problem with nesh.thumbnail

2007-10-04 Thread Divan Roulant
Hello, recently, I upgraded to the last development version of Django from a version dating back to around last June (I can't remember the exact version). Since then, I can't get thumbnails and I keep getting the message: "'myproject.thumbnail' is not a valid tag library: Could not load

Re: What's the best approach to allow users to upload data to a Django Web site?

2007-08-18 Thread Divan Roulant
AIL PROTECTED]> wrote: > On 8/18/07, Divan Roulant <[EMAIL PROTECTED]> wrote: > > > > > That's what I though initially but since I am fairly new to Django and > > Web development, I wanted to check it out with more experienced > > developers, just in case. >

Re: What's the best approach to allow users to upload data to a Django Web site?

2007-08-18 Thread Divan Roulant
That's what I though initially but since I am fairly new to Django and Web development, I wanted to check it out with more experienced developers, just in case. Thanks! Divan On Aug 18, 3:50 pm, "Jeremy Dunck" <[EMAIL PROTECTED]> wrote: > On 8/18/07, Divan Roulant <[E

What's the best approach to allow users to upload data to a Django Web site?

2007-08-18 Thread Divan Roulant
Hello, I've implemented my models and my site works fine. A user can create an account and log in. Now it's time for me to allow a user to upload data, once logged in. However, I'm stuck with that question: once a user is logged in to my site, should I link her to the Django admin site (with