On 12/03/2021 19.50, GEETHANJALI S P wrote:
> Suppose a program is written in flask framework how can we convert it
> into django?

That depends so much on the program that there's no way to answer that.

Flask basically just makes it easy to handle HTTP requests in Python.
While Django does that, it does so much more as well.

I've personally used Flask for tasks where Django would simply be
overkill since I didn't need a database or a template rendering engine.
An example for that could be a very simple REST service.

If your existing Flask application doesn't use a database, doesn't need
to generate dynamic HTML pages or any of the other stuff that Django
provides, then it would probably be fairly trivial. The question would
then be what would be the point of converting it to Django in the first
place?

If your existing Flask application does use a database etc. and is more
of a reimplementation of at least some of the features Django provides
out of the box, then I could imagine it would be far from trivial, but
might make sense, again of course depending on the application.

It would be easier to give an answer if you could share the code to the
Flask application or at least describe it a bit more in detail.

Kind regards,

Kasper Laudrup

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/852a3b76-23e3-264c-10ac-575ae77ee74f%40stacktrace.dk.

Reply via email to