Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
E
esi-table-data
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
esi-data-scrapping
esi-table-data
Commits
6356e7f3
Commit
6356e7f3
authored
Aug 11, 2017
by
Vasyl Bodnaruk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delete dotenv from scrapy project
Because .egg file on scrapyd not loaded env variable
parent
36ed6bf6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
19 deletions
+1
-19
settings.py
exa/exa/settings.py
+1
-19
No files found.
exa/exa/settings.py
View file @
6356e7f3
...
...
@@ -13,14 +13,6 @@ import os
from
os.path
import
join
,
dirname
from
dotenv
import
load_dotenv
dotenv_path
=
join
(
dirname
(
__file__
),
'env.py'
)
load_dotenv
(
dotenv_path
)
def
get_env
(
name
):
return
os
.
environ
[
name
]
def
get_bool_env
(
name
):
return
True
if
os
.
environ
[
name
]
==
'True'
else
False
BOT_NAME
=
'exa'
...
...
@@ -111,22 +103,12 @@ ITEM_PIPELINES = {
# HTTPCACHE_IGNORE_HTTP_CODES = []
# HTTPCACHE_STORAGE = 'scrapy.extensions.httpcache.FilesystemCacheStorage'
DB
=
{
'host'
:
'localhost'
,
'user'
:
get_env
(
'DB_USER'
),
'pwd'
:
get_env
(
'DB_PASSWORD'
),
'database'
:
'esi'
}
CRAWLERA_MAXBANS
=
3
MIDDLEWARE
=
{
'display'
:
True
,
'driver'
:
'Chrome'
}
try
:
from
.local_settings
import
*
from
.env
import
*
except
ImportError
:
pass
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment