话题水军识别应用
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1005 B

  1. """
  2. WSGI config for Zhijian_Project_WebService project.
  3. It exposes the WSGI callable as a module-level variable named ``application``.
  4. For more information on this file, see
  5. https://docs.djangoproject.com/en/1.8/howto/deployment/wsgi/
  6. """
  7. import os
  8. # import configparser
  9. # #加载配置文件
  10. # configFile = './config.ini'
  11. # # 创建配置文件对象
  12. # con = configparser.ConfigParser()
  13. # # 读取文件
  14. # con.read(configFile, encoding='utf-8')
  15. # #数据库配置信息
  16. # dbConfig = dict(con.items('database'))
  17. import threading
  18. from text_analysis.views import predictTopic,replyGraphThread,data_structure
  19. #开启数据入库线程
  20. t = threading.Thread(target=data_structure, name='dataStructureThread')
  21. t.daemon = True
  22. t.start()
  23. t1 = threading.Thread(target=replyGraphThread, name='replyGraphThread')
  24. t1.daemon = True
  25. t1.start()
  26. from django.core.wsgi import get_wsgi_application
  27. os.environ.setdefault("DJANGO_SETTINGS_MODULE", "text_analysis.settings")
  28. application = get_wsgi_application()