On Oct 8, 10:55 pm, rajeev j sebastian <[email protected]>
wrote:
> On Oct 8, 10:23 pm, Chris Moffitt <[email protected]> wrote:
> I found some places in satchmo code where livesettings were being
> queried for building url patterns (e.g., the product and category base
> slugs). I removed them for testing.
With an interesting tip from Michail:
He found that the DB connection was being created in the parent before
the prefork, and it was used in the child process. Which was why the
exception was happening.
So I did some investigation and in *my* case, it seems that all these
config_value calls in urls.py is the culprit.
I removed the product and category slugs config_value calls as I noted
before. To find the final case, what I did is go to the
postgresql_psycopg2 backend's base.py in the django source, found the
Database.connect line and added the following before it:
import os
import traceback
print os.getpid()
traceback.print_stack()
This helped me find the final config_value thing: in the wishlist app.
Removing this, now it works. Of course, I have to do more testing to
see if everything is OK.
Michail, did you figure out why yours isnt working ? Is it similiar to
what I wrote above ?
Regards
Rajeev J Sebastian
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Satchmo users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/satchmo-users?hl=en
-~----------~----~----~----~------~----~------~--~---