Comment 5 for bug 662423

Revision history for this message
Ignace Mouzannar (ghantoos) wrote :

I simple grep shows that it does:
----
$ grep -R django scrapy/
scrapy/tests/test_djangoitem/models.py:from django.db import models
scrapy/tests/test_djangoitem/models.py: app_label = 'test_djangoitem'
scrapy/tests/test_djangoitem/__init__.py:from scrapy.contrib_exp.djangoitem import DjangoItem, Field
scrapy/tests/test_djangoitem/__init__.py:os.environ['DJANGO_SETTINGS_MODULE'] = 'scrapy.tests.test_djangoitem.settings'
scrapy/tests/test_djangoitem/__init__.py: import django
scrapy/tests/test_djangoitem/__init__.py: django = None
scrapy/tests/test_djangoitem/__init__.py:if django:
scrapy/tests/test_djangoitem/__init__.py: django_model = Person
scrapy/tests/test_djangoitem/__init__.py: if not django:
scrapy/contrib_exp/djangoitem.py: if cls.django_model:
scrapy/contrib_exp/djangoitem.py: cls._model_meta = cls.django_model._meta
scrapy/contrib_exp/djangoitem.py: django_model = None
scrapy/contrib_exp/djangoitem.py: model = self.django_model(**modelargs)
----

However, it might be interesting to 'suggest' it instead 'recommend' it. I'll work on this in the next release.

Cheers,
 Ignace M