Removed check for writable path in __init__. Thanks to Jacob Kaplan-Moss for pointing it out.
This commit is contained in:
parent
fce97acf33
commit
027e9bf1f1
|
@ -134,9 +134,6 @@ class SearchBackend(BaseSearchBackend):
|
|||
if not os.path.exists(settings.HAYSTACK_XAPIAN_PATH):
|
||||
os.makedirs(settings.HAYSTACK_XAPIAN_PATH)
|
||||
|
||||
if not os.access(settings.HAYSTACK_XAPIAN_PATH, os.W_OK):
|
||||
raise IOError("The path to your Xapian index '%s' is not writable for the current user/group." % settings.HAYSTACK_XAPIAN_PATH)
|
||||
|
||||
self.language = language
|
||||
self._schema = None
|
||||
self._content_field_name = None
|
||||
|
|
Loading…
Reference in New Issue
Block a user