Commits

Radim Novotny  committed 491cc82

Retrieve both settings values separatelly, because one of them may be undefined in custom settings

  • Participants
  • Parent commits b9be1cb

Comments (0)

Files changed (1)

File lfs_solr/utils.py

 
 try:
     SOLR_ADDRESS = settings.SOLR_ADDRESS
+except:
+    from lfs_solr.settings import SOLR_ADDRESS
+
+try:
     SOLR_ENABLED = settings.SOLR_ENABLED
 except:
-    from lfs_solr.settings import SOLR_ADDRESS, SOLR_ENABLED
+    from lfs_solr.settings import SOLR_ENABLED
 
 
 class SolrConfigurationException(Exception):