How to create .exe file of django project ?

1,972 views
Skip to first unread message

Tejas Tendulkar

unread,
Jun 2, 2021, 8:08:48 AM6/2/21
to Django users
Hello,I create django website using django and jquery but i want to convert into desktop application.I tried pyinstaller but there is some problem with pyinstaller.It create exe file but but when i open the exe it open cmd promt and close automatically.Is there any other way to convert into desktop application ?

Kasper Laudrup

unread,
Jun 2, 2021, 9:00:15 AM6/2/21
to django...@googlegroups.com
On 02/06/2021 14.06, Tejas Tendulkar wrote:
> Is there any other way to convert into desktop application ?
>

I would say the short answer is "no". At least not in the way you have
tried so far.

You would probably be able to somehow make the development server run
your code as an executable with something like pyinstaller and then open
the default webbrowser and point it to your locally running web server,
but it doesn't sound like that's what you're after.

Someone else mentioned something about some javascript frameworks
designed for targeting both websites as well as mobile applications and
something like that might work.

I would probably do something like creating a REST API instead (using,
eg. Django Rest Framework) and then create a GUI frontend using
something like PyQT, but of course that very much depends on what your
application is doing.

Kind regards,

Kasper Laudrup

OpenPGP_signature

محمد احمد

unread,
Oct 11, 2022, 10:51:55 AM10/11/22
to Django users
Hello,I create django website using django and jquery but i want to convert into desktop application.I tried pyinstaller but there is some problem with pyinstaller.It create exe file but but when i open the exe it open cmd promt and close automatically.Is there any other way to convert into desktop application ?

ssa...@gmail.com

unread,
Oct 11, 2022, 12:40:09 PM10/11/22
to django...@googlegroups.com
Something else to look at is pysimplegui to replace your end user interfaces in django. https://www.pysimplegui.org/en/latest/

I have not tried to turn any of them into .exe since I mostly run linux but it would seem to be more inclined to work within a .exe framework.

Good luck.
> --
> 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...@googlegroups.com
> <mailto:django-users...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/362abbf5-18d3-4b1e-95c6-a8842ef580b6n%40googlegroups.com <https://groups.google.com/d/msgid/django-users/362abbf5-18d3-4b1e-95c6-a8842ef580b6n%40googlegroups.com?utm_medium=email&utm_source=footer>.
>
Reply all
Reply to author
Forward
0 new messages