Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
edison7500 committed Dec 10, 2019
1 parent a3908d3 commit f0887b4
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,23 @@
# scrapy-mongoengine


## Usage

in your scrapu settings.py

```.python
# mongodb
MONGOENGINE_ENABLED = True
MONGODB_DATABASES = {
"default": {
"name": "scrapy",
"host": "127.0.0.1",
"password": database_password,
"username": database_user,
"tz_aware": True, # if you using timezones in django (USE_TZ = True)
}
}
MONGODB_UNIQUE_KEY = "origin_link"
MONGODB_ADD_TIMESTAMP = True
```

0 comments on commit f0887b4

Please sign in to comment.