Commits

Gregory Petukhov committed a4452aa

Update demo project

  • Participants
  • Parent commits ee42aa8

Comments (0)

Files changed (1)

 os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
 from django.contrib.auth.models import User
 from django.core.management import call_command
+from django.conf import settings
 
 from urlauth.models import AuthKey
 
 def reproduce():
+    try:
+        os.unlink(settings.DATABASES['default']['NAME'])
+    except OSError:
+        pass
+    call_command('syncdb', interactive=False)
     call_command('flush', interactive=False)
 
     for x in xrange(100):