Re: can the Django test server serve cgi scripts?
On Mon, May 14, 2012 at 2:15 AM, Gelonida N <gelonida@gmail.com> wrote:
> I know, that performance would be entire crap.
> However sometimes this could be useful for a minimalist setup.
>
> So let me explain:
>
> For testing I'd like start no web server at all, just the django test
> server. (./manage.py ./runserver )
>
> It will handle all static files and all django views.
>
> Now I'd like to call one CGI script. ( /cgi-in/test.cgi )
>
> What I though is to add a rule to urls.py,
>
> Is there any module, which could setup the environment, call an external
> executable and return its output via django.
No. Django doesn't have any built in support for CGI, nor is it ever
likely to have such support.
The best you're going to be able to manage is to use a separate web
server to deploy both your Django app *and* your CGI script. As of
Django 1.4, Django ships with a WSGI script to make this slightly
easier to manage.
Yours
Russ Magee %-)
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home