Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

add django to test requirements and fix test_djangoitem for modern django versions

Mikhail Korobov2105ec58eb63
diff --git a/.travis/requirements-latest.txt b/.travis/requirements-latest.txt
index 585968196..15dd8936f 100644
--- a/.travis/requirements-latest.txt
+++ b/.travis/requirements-latest.txt
@@ -3,3 +3,4 @@ lxml
twisted
boto
Pillow
+django
diff --git a/.travis/requirements-precise.txt b/.travis/requirements-precise.txt
index 276f7523b..625708aa2 100644
--- a/.travis/requirements-precise.txt
+++ b/.travis/requirements-precise.txt
@@ -4,3 +4,4 @@ lxml==2.3.2
twisted==11.1.0
boto==2.2.2
Pillow<2.0
+django==1.3.1
diff --git a/scrapy/tests/test_djangoitem/settings.py b/scrapy/tests/test_djangoitem/settings.py
index e3300db9d..1bee92477 100644
--- a/scrapy/tests/test_djangoitem/settings.py
+++ b/scrapy/tests/test_djangoitem/settings.py
@@ -4,3 +4,5 @@ DATABASES = {
'NAME': ':memory:',
}
}
+
+SECRET_KEY = 'top-secret'