title: Using scrapy command "crawl" from django
body: <p>I am trying to crawl a spider (of scrapy) from django and now the problem is, the spider can be crawled only when we are at the top directory(directory with scrapy.cfg). So how can that be achieved?</p>
  
  <pre><code>.../polls/managements/commands/mycommand.py
  
  from django.core.management.base import BaseCommand
  from scrapy.cmdline import execute
  import os
  
  class Command(BaseCommand):
  
      def run_from_argv(self, argv):
          print ('In run_from_argv')
          self._argv = argv
          return self.execute()
  
      def handle(self, *args, **options):
          #os.environ['SCRAPY_SETTINGS_MODULE'] = '/home/nabin/scraptut/newscrawler'
          execute(self._argv[1:])
  </code></pre>
  
  <p>And if i try</p>
  
  <pre><code>python manage.py mycommands crawl myspider
  </code></pre>
  
  <p>then I won't be able. Because to use crawl i need to be in the top directory with scrapy.cfg file.. So I want to know, how that is possible?</p>