Re: Dictionnary problem trough session

2007-11-06 Thread Francis Lavoie
Ok, I found my problem. Because I was storing a object into the session dictionnary, when I called method to add, modify or delete object's value, the session didn't get saved. 2007/10/31, Francis Lavoie <[EMAIL PROTECTED]>: > > But Isn't the same thing as saving

Re: Recommendations on running Django on Leopard

2007-10-31 Thread Francis Lavoie
If you only plan to do developpement or testing, why is the included web server not enought? I upgrade to Leopard yesterday night. I'll reinstall django tonight, but I don't use apache or mod_python since it only a developpement front end. 2007/10/31, jeffself <[EMAIL PROTECTED]>: > > > I just i

Re: Dictionnary problem trough session

2007-10-31 Thread Francis Lavoie
In views.py I do : myobj = object1() myobj.key1.do2("value") 2007/10/30, Malcolm Tredinnick <[EMAIL PROTECTED]>: > > > On Tue, 2007-10-30 at 16:40 -0400, Francis Lavoie wrote: > > Hi, > > > > > > I have a shopping_cart class that I use with a sess

Dictionnary problem trough session

2007-10-30 Thread Francis Lavoie
Hi, I have a shopping_cart class that I use with a session to store orders information. In this shopping cart, I have other object like customer contact. class CustomerContact: def __init__(self): self.address = {} def add_address(self, add_dict, Company, Contact, Address,

Re: Python 2.5, Postgres, Psycopg2 on OS X

2007-10-25 Thread Francis Lavoie
have you tried to import the module into python directly? Le 07-10-25 à 18:58, Frank a écrit : > > All- > > Having a rough go getting database bindings in OS X. > > I've installed psycopg2 using the package here: > http://pythonmac.org/packages/py25-fat/mpkg/psycopg2-2.0.5.1-py2.5- > macosx10

Re: Error During Django Intall on Mac

2007-10-24 Thread Francis Lavoie
Because this is a secured area in your system. If you want to change something you need admin/root acces like when you install software. try : sudo ln -s /usr/local/lib/python2.3/site-packages/django_src/django/ bin/django-admin.py /usr/local/bin/django-admin.py it will ask for your passwor

Re: py2app & py2ex

2007-10-19 Thread Francis Lavoie
Hi, I though of doing something similar a couple of month ago without reading about It, I somehow change my mind. I really like django, but I don't think it is well suite for this kind of use. What i decide to do is a python client application which use the web server as a web service to update i

Sorting product

2007-09-26 Thread Francis Lavoie
Hi, I have a question related to sorting items. I have a page that list products. These products are in different categories, some belongs to other products (like addons). But I need to sort them as the most important product is at the top. The problem is that I can't come up with a good solutio

Re: recursive relationship foreignkey

2007-08-19 Thread Francis Lavoie
`parent_id` integer NULL ) ; ALTER TABLE `myapp_category` ADD CONSTRAINT parent_id_refs_id_5d9ae1d8600b3d85 FOREIGN KEY (`parent_id`) REFERENCES `myapp_category` (`id`); Regards, Francis On dim, 2007-08-19 at 13:02 -0700, olivier wrote: > Hi, > > On 19 août, 21:51, Francis Lavoie <[E

recursive relationship foreignkey

2007-08-19 Thread Francis Lavoie
Hi, I'm trying to implement a recursive relationship with a foreignkey, but I failed to make it work. My goal is to have a table containing different categories and sub categories of equipment. the relationship with 'self' is for the subcategories. But I can't create the Master categories. her

database error instead of 400

2007-06-25 Thread Francis Lavoie
I have a problem with my 400.html when I put the site in production (another server). Both desktop and server are running ubuntu 7.04. The Desktop use the builtin webserver and the server is running apache with mod_python On my localhost with debug = True and debug = False, everything is working

Re: Kid and css file

2007-06-12 Thread Francis Lavoie
Le lundi 11 juin 2007 à 13:37 -0700, Tyson Tate a écrit : > On Jun 11, 2007, at 11:18 AM, Francis wrote: > > > So far everything is working fine. But I have founded no working > > solution to make my /static/css /static/images /static/javascript > > works. > > Read this: > > http://www.djangopr