Commit bd0dcc6c authored by Tim Graham's avatar Tim Graham
Browse files

Fixed #20766 -- Deprecated FastCGI support.

parent b2314d9e
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
import warnings

from django.core.management.base import BaseCommand

class Command(BaseCommand):
@@ -5,6 +7,10 @@ class Command(BaseCommand):
    args = '[various KEY=val options, use `runfcgi help` for help]'

    def handle(self, *args, **options):
        warnings.warn(
            "FastCGI support has been deprecated and will be removed in Django 1.9.",
            PendingDeprecationWarning)

        from django.conf import settings
        from django.utils import translation
        # Activate the current language, because it won't get activated later.
+3 −0
Original line number Diff line number Diff line
@@ -2,6 +2,9 @@
How to use Django with FastCGI, SCGI, or AJP
============================================

.. deprecated:: 1.7
    FastCGI support is deprecated and will be removed in Django 1.9.

.. highlight:: bash

Although :doc:`WSGI</howto/deployment/wsgi/index>` is the preferred deployment
+7 −1
Original line number Diff line number Diff line
@@ -10,9 +10,15 @@ ways to easily deploy Django:
   :maxdepth: 1

   wsgi/index
   fastcgi
   checklist

FastCGI support is deprecated and will be removed in Django 1.9.

.. toctree::
   :maxdepth: 1

   fastcgi

If you're new to deploying Django and/or Python, we'd recommend you try
:doc:`mod_wsgi </howto/deployment/wsgi/modwsgi>` first. In most cases it'll be
the easiest, fastest, and most stable deployment choice.
+1 −1
Original line number Diff line number Diff line
@@ -190,7 +190,7 @@ testing of Django applications:
* **Deployment:**
  :doc:`Overview <howto/deployment/index>` |
  :doc:`WSGI servers <howto/deployment/wsgi/index>` |
  :doc:`FastCGI/SCGI/AJP <howto/deployment/fastcgi>` |
  :doc:`FastCGI/SCGI/AJP <howto/deployment/fastcgi>` (deprecated) |
  :doc:`Deploying static files <howto/static-files/deployment>` |
  :doc:`Tracking code errors by email <howto/error-reporting>`

+3 −0
Original line number Diff line number Diff line
@@ -418,6 +418,9 @@ these changes.
  :ref:`initial SQL data<initial-sql>` in ``myapp/models/sql/``. Move your
  custom SQL files to ``myapp/sql/``.

* FastCGI support via the ``runfcgi`` management command will be
  removed. Please deploy your project using WSGI.

2.0
---

Loading