Commit a3f19a7e authored by Vasyl Bodnaruk's avatar Vasyl Bodnaruk

settings update

parent 960cbef2
......@@ -102,11 +102,11 @@ DATABASES = {
},
'esi': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'esi',
'NAME': get_env('DB_NAME'),
'USER': get_env('DB_USER'),
'PASSWORD': get_env('DB_PASSWORD'),
'HOST': get_env('DB_HOST'),
'PORT': '3306',
'PORT': get_env('PORT'),
}
}
......
......@@ -16,7 +16,6 @@ from .helpers.utilits import MLDataMaker, News
db = get_project_settings().get('DB')
class ExaPipeline(object):
def __init__(self):
'''
......
......@@ -112,8 +112,9 @@ try:
except ImportError:
pass
# Import .env like DB pass, CRAWLERA_APIKEY
# Import env like DB pass, CRAWLERA_APIKEY
try:
from .env import *
except ImportError:
print('env not found!')
pass
......@@ -18,7 +18,7 @@ flower==0.9.2
django-celery-beat==1.0.1
python-dotenv==0.6.4
redis==2.10.5
cryptography==1.9
cryptography>=1.9
PyDispatcher==2.0.5
#nltk==3.2.4
#numpy==1.13.1
......@@ -26,4 +26,4 @@ PyDispatcher==2.0.5
#scipy==0.19.1
six==1.10.0
#sklearn==0.0
#stemming==1.0.1
\ No newline at end of file
#stemming==1.0.1
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment