not really
WSGI is just a standard, a document that says "the web server will
call the app as a function with such and such parameters, the app will
return such and such values with the response"
armed with that, any Python developer can write a web app just
following the 'app' part of the standard, and any web server that
wants to call those apps do the calls following the other part.
specifically, mod_wsgi is the apache plugin that launches a Python
interpreter and do all the calls according to the standard, and Django
is a framework that follows the WSGI standard.
besides, some WSGI-compliant servers need a little extra information
to specify exactly what web app to call, and in mod_wsgi case, it's
done with 'the wsgi file'. but this is specific to mod_wsgi, other
servers do that differently.
--
Javier
nothing.
the Django development server (the one that runs with the runserver
command) is an intentionally-limited web server. you don't need
Apache for development. but this server will absolutely not be
appropriate for real world serving, no matter how light the load.
> If I close the Django server, how do I
> run my application? If I save a django.wsgi file in mysite/apache/
> django.wsgi will things happen automatically?
you need the mod_wsgi docs for that. the Django page about deployment
in mod_wsgi should be enough to get you running in the simplest case.
> When I practiced CGI with python, I had to import the cgi module and
> use that to get the inputs from an html form. Do I have to do
> something similar with Django?
no. Django manages everything between WSGI and your apps. you
shouldn't need any extra Python code besides what you run under the
development server. in fact, the development server uses WSGI too,
so if your code already runs there, it should also run on
Apache/mod_wsgi once you get that configured.
--
Javier
Note that I use flex for my frontend and thus don't use all the django
features as intended.
Some of these files may be out of date with latest practice and current
docs. So use them as you will.