Re: hello guys, how can I upload multiple images using single button? help me please

2021-01-09 Thread Joseph Wayodi
Post your code here, and someone will help you figure out why it does not work like you expect. On Sat, 9 Jan 2021 at 22:07, Chelsea Fan wrote: > > I tried it, it works but it saves last file twice, for example if I upload 2 > file it saves 3 > > On Sat, Jan 9, 2021 at 7:53 P

Re: hello guys, how can I upload multiple images using single button? help me please

2021-01-09 Thread Joseph Wayodi
The Django docs show how to do this: . On Thu, 7 Jan 2021 at 15:24, Chelsea Fan wrote: > > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsub

Re: Create table and load data

2012-10-11 Thread Joseph Wayodi
On Thu, Oct 11, 2012 at 2:23 AM, Larry Martell wrote: > I'm having trouble getting django to read my fixture file. I created it in > yaml: > > - model: cdsem.fields >pk: 1 >fields: > name: data_file_id > description: data_file_id > - model: cdsem.fields >pk: 2 >fields: >

Re: How to get hold of a (database) connection from within a thread

2010-11-04 Thread Joseph Wayodi
On Thu, Nov 4, 2010 at 3:12 PM, Jirka Vejrazka wrote: > > How can I get hold of the connection used to create the object, from > within > > each thread, so that each thread closes the connection that it has just > > used? Alternatively, how can I get a list of all the open connections > that > > D

How to get hold of a (database) connection from within a thread

2010-11-04 Thread Joseph Wayodi
Hi people, I am running some Django code that creates objects in the database. I am using PostgreSQL via psycopg2. However, I am running this code from the Django shell, and not as part of a request. I therefore have to handle a few things manually, for example, closing connections to the database