Using Django with virtualenv, get error ImportError: No module named 'django.core.servers.fastcgi'

前端 未结 2 2000
悲&欢浪女
悲&欢浪女 2021-01-13 05:44

I\'m using virtualenv and trying to host my django app. I\'m using Python 3.5 and Django 1.9.2. I can run import django fine. When I run

from d         


        
相关标签:
2条回答
  • 2021-01-13 06:11

    I think this module was removed in Django 1.9

    The documentation for this module in version 1.8 says that will be removed in 1.9: https://docs.djangoproject.com/en/1.8/howto/deployment/fastcgi/

    0 讨论(0)
  • 2021-01-13 06:30

    FastCGI support was deprecated in 1.7, and the module you're trying to import was removed in 1.9. The only protocol supported by Django in 1.9 is WSGI.

    If, for some reason, you cannot use WSGI directly, you need to use an adapter that can serve a WSGI application as FastCGI.

    0 讨论(0)
提交回复
热议问题