Wednesday, June 6, 2012

Re: Accessing Backend DB for UI

On Thu, 7 Jun 2012 09:45:53 +0530, Tanveer Ali Sha
<shaikhtali@gmail.com> declaimed the following in
gmane.comp.python.django.user:

> sorry ,I have a Perl back-end running as an API,i want to control that in
> my front end using Django.How can I do that.........?
>

API to what? A common database system?

If so, the best solution is to bypass the PERL and talk directly to
the database engine; Django may support the database engine itself.

Otherwise, Django will not be involved at all -- it will be pure
hand-written Python calling the PERL operations -- I presume the PERL is
command line driven, so Python can invoke it via any of: os.system(),
subprocess.popen(), etc.

Django is optimized to be an end-to-end framework... from HTTP
request/response handling, HTML templating, through business logic, and
directly into a database engine --although it doesn't force one to use
all of the framework (the template system is probably the easiest thing
to substitute). If your database is only accessible via PERL scripts,
that means you have to replace the Django database interface with your
own Python code (or create a DB-API 2 compatible library -- which may be
pure Python, or a compiled C-language extension -- that will interface
with the PERL scripts; then add some tweaks to the Django database
modules to recognize your new library as a valid database option).
--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/

--
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


Real Estate