title: signal only works in main thread: scrappy
body: <p>I am making an api which return the <code>JsonResponse</code> as my text from the scrapy. When i run the scripts individually it runs perfectly. But when i try to integrate the scrapy script with python django i am not getting the output. </p>
  
  <p>What i want is only return the response to the request(which in my case is <code>POSTMAN</code> <code>POST</code> request. </p>
  
  <p>Here is the code which i am trying</p>
  
  <pre><code>from django.http import HttpResponse, JsonResponse
  from django.views.decorators.csrf import csrf_exempt
  import scrapy
  from scrapy.crawler import CrawlerProcess
  
  
  @csrf_exempt
  def some_view(request, username):
      process = CrawlerProcess({
          'USER_AGENT': 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)',
          'LOG_ENABLED': 'false'
      })
      process_test = process.crawl(QuotesSpider)
      process.start()
  
      return JsonResponse({'return': process_test})
  
  
  class QuotesSpider(scrapy.Spider):
      name = "quotes"
  
      def start_requests(self):
          urls = [
              'http://quotes.toscrape.com/random',
          ]
          for url in urls:
              yield scrapy.Request(url=url, callback=self.parse)
  
      def parse(self, response):
          return response.css('.text::text').extract_first()
  </code></pre>
  
  <p>I am very new to python and django stuff.Any kind of help would be much appreciated.</p>