That's essentially what google does. I would suggest dealing with the Python~C integration/test as a command line execution and when that works, learn to call the python wrapper from django.
It's been 15 years since I actually did any of this, but it is pretty straight forward with SWIG. There are other ways also, I just don't know them. Depending on how heavily site is used, you can also run the c program as a shell script using popen, et. Al. This is crude but effective when you have unmaintainable C code that runs. -----Original Message----- From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of Graeck Sent: Tuesday, April 12, 2011 7:15 PM To: Django users Subject: [Suspected Spam] Redoing a C/CGI web app in Python/Django? Hi all, Just looking for input ... tips, suggestions, etc. We have an old web app written in C using CGIs. All the html is generating in the C code using print statements. It's become almost impossible to do anything other than make very minor UI changes due to the complexity of the code and the tediousness of trying to make UI updates via 1000s of print statements. So, we're thinking of moving to something like Django. Since Python can call C code (libraries, functions, etc, if I'm understanding correctly - I'm pretty new at Python myself - and Django), would it be feasible to build the UI templates in Python/ Django and still be able to reuse some of our C code - the stuff that crunches the huge amounts of data that we have to process? I've started reading: http://docs.python.org/extending/extending.html But any input (esp from people that might have trie such a migration before) would be appreciated. Thanks! -- 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en. -- 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.