ericholscher / django-test-utils

Utilities for testing Django applications
http://django-test-utils.readthedocs.org/
MIT License
343 stars 69 forks source link

Error running crawlurls #1

Closed andybak closed 15 years ago

andybak commented 15 years ago
$ ./manage.py crawlurls
Traceback (most recent call last):
  File "./manage.py", line 11, in <module>
    execute_manager(settings)
  File "/Library/Python/2.5/site-packages/django/core/management/__init__.py", line 350, in execute_manager
    utility.execute()
  File "/Library/Python/2.5/site-packages/django/core/management/__init__.py", line 295, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/Library/Python/2.5/site-packages/django/core/management/__init__.py", line 249, in fetch_command
    klass = load_command_class(app_name, subcommand)
  File "/Library/Python/2.5/site-packages/django/core/management/__init__.py", line 67, in load_command_class
    {}, {}, ['Command']), 'Command')()
  File "/Library/Python/2.5/site-packages/django_test_utils-0.3-py2.5.egg/test_utils/management/commands/crawlurls.py", line 6, in <module>
    from test_utils.crawler import Crawler
ImportError: cannot import name Crawler
alekam commented 15 years ago

Please fix the file test_utils/managment/commands/crawlurls.py like this:

-6|from test_utils.crawler import Crawler
+6|from test_utils.crawler.base import Crawler
-7|from test_utils.patu import Patu
+7|#from test_utils.patu import Patu

-55|#c = Crawler('/', conf_urls=conf_urls, verbosity=verbosity)
-56|c = Patu('http://ericholscher.com', conf_urls=conf_urls, verbosity=verbosity)
+55|c = Crawler('/', conf_urls=conf_urls, verbosity=verbosity)
+56|#c = Patu('http://ericholscher.com', conf_urls=conf_urls, verbosity=verbosity)