Parcourir la source

Change configs

Mohidul Islam il y a 4 ans
Parent
commit
76ab876615

+ 1 - 6
review_automation/settings/base.py

@@ -83,13 +83,8 @@ USE_TZ = True
 # Static files (CSS, JavaScript, Images)
 
 STATIC_URL = '/static/'
-STATIC_ROOT = os.path.join(BASE_DIR, 'static_root')
+STATIC_ROOT = os.path.join(BASE_DIR, 'static/')
 
 LOGIN_URL = '/user/login'
 LOGIN_REDIRECT_URL = 'login-redirect'
 CRISPY_TEMPLATE_PACK = 'bootstrap4'
-
-
-# selenium-firefox instance
-# BROWSER = get_firefox_browser()
-BROWSER = 'Bangladesh'

+ 5 - 1
review_automation/settings/dev.py

@@ -1,7 +1,8 @@
 import spacy
 from .base import *
 try:
-    SPACY_NER_MODEL = spacy.load('en_core_web_sm')
+    SPACY_NER_MODEL = 'model-spacy'
+    # SPACY_NER_MODEL = spacy.load('en_core_web_sm')
     print('\033[92mSpacy model small size has loaded!\033[0m')
 except OSError:
     print('\033[93mNo spacy model has found. Please install a small sized spacy model.\033[0m')
@@ -30,3 +31,6 @@ DATABASES = {
 
 HOST_URI = "http://127.0.0.1:8000"
 NLU_SERVER_URI = 'http://localhost:1996'
+# selenium-firefox instance
+
+BROWSER = 'Bangladesh'

+ 2 - 0
review_automation/settings/prod.py

@@ -48,3 +48,5 @@ AUTH_PASSWORD_VALIDATORS = [
 
 HOST_URI = "http://10.0.0.36:5005"
 NLU_SERVER_URI = 'http://localhost:1996'
+# selenium-firefox instance
+BROWSER = get_firefox_browser()