Re: Speeding up test database creation

2012-11-27 Thread John Maxwell
I just tried changing 'NAME' to ':memory:' and I'm still getting the same results. I continued with the tutorial for a while, and it turns out that the unit tests for the polls app don't have this problem. So now I'm beginning to suspect that there's a problem with Django, and the implementation

Re: Speeding up test database creation

2012-11-27 Thread John Maxwell
Hm, I tried commenting out the line 'NAME': '/home/john/database.sqlite', and it still seems to be just as slow, if not slower... On Monday, November 26, 2012 5:56:30 AM UTC-8, Andres Reyes Monge wrote: > > The tutorial uses a sqlite file database not a in memory database, try > omitting the na

Speeding up test database creation

2012-11-26 Thread Andres Reyes Monge
The tutorial uses a sqlite file database not a in memory database, try omitting the name parameter and it should speed things up -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com

Speeding up test database creation

2012-11-26 Thread John Maxwell
Hi all, I've been doing the test-driven Django tutorial at http://www.tdd-django-tutorial.com/ I'm partway through the tutorial, and when I run the command "python manage.py test fts", the message "Creating test database for alias 'default'..." gets shown for 4-5 seconds before anything else h