Django Test Server and threading

2010-01-30 Thread Cristiano Paris
Hi, can you explain why this doesn't work: - import os, sys, thread, time sys.path.append('/mysite') os.environ['DJANGO_SETTINGS_MODULE'] = 'mysite.settings' from django.core.handlers.wsgi import WSGIHandler() from django.db import connection import wsgiref.simple_server connection.creatio

Re: Django Test Server and threading

2010-02-01 Thread Cristiano Paris
On Mon, Feb 1, 2010 at 12:33 PM, Ramiro Morales wrote: > ... > Are you using sqlite3? Yes but, isn't the test server always using sqlite3? Cristiano -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-u

Re: Django Test Server and threading

2010-02-01 Thread Cristiano Paris
On Mon, Feb 1, 2010 at 12:33 PM, Ramiro Morales wrote: > ... > Are you using sqlite3? I think I understand why you're asking this. Here's a little test I ran: - import sqlite3,thread from time import sleep conn = sqlite3.connect(':memory:') c = conn.cursor() c.execute('''create table stock