Thanks, I think that might be what I was looking for.

On Apr 13, 7:10 am, lilspikey <lilspi...@gmail.com> wrote:
> You could refactor the C code into a library, then call it from
> Django.
>
> There are several ways to interface with a C library in Python, but
> you might want to look at ctypes:
>
>  http://docs.python.org/library/ctypes.html
>
> It means you don't have to write extra C code just to do the
> interfacing.
>
> On Apr 13, 12:14 am, Graeck <gra...@gmail.com> wrote:
>
> > 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.

Reply via email to