attach thread before using jvm
authorMarcin Koziej <marcin@lolownia.org>
Sat, 17 Mar 2012 14:49:02 +0000 (15:49 +0100)
committerMarcin Koziej <marcin@lolownia.org>
Sat, 17 Mar 2012 14:49:02 +0000 (15:49 +0100)
apps/search/views.py

index 4db4bb8..2945c42 100644 (file)
@@ -51,6 +51,7 @@ def did_you_mean(query, tokens):
 
     return query
 
+JVM.attachCurrentThread()
 search = Search()
 
 def hint(request):