DEV Community

JesterRexx-ux
JesterRexx-ux

Posted on

Django vs Tkinter

See I know this is just an silly header but I wanna know on what I should focus more....this is in python.......on creating a web application with django or using Tkinter to create a desktop application??????

Enlighten me guys!!!

Top comments (7)

Collapse
 
0916dhkim profile image
Danny Kim

IMO web is more versatile than desktop apps. The downside of web is that you need to learn Javascript, HTML and CSS to implement front end, while you only need Python to make a Tkinter app. Although I said web is better, it is totally fine to start with desktop application development. You can make amazing applications regardless of what you choose right now. Try to worry less, and do more!

Collapse
 
jesterrexxux profile image
JesterRexx-ux

Can we create web app by just using django????

Collapse
 
0916dhkim profile image
Danny Kim

Short answer: yes, you can make an web app using Django only. Slightly longer answer: Web app needs both frontend & backend. Django is a Python framework for backend, and you will need to write frontend code with HTML + CSS + JS. Also, if you need to add more features to your web app, you will depend on more and more libraries. Try to follow the tutorial from Django's official website, and you will get a basic idea about what you can make with Django.

Collapse
 
gwutama profile image
Galuh Utama • Edited

Deciding between web-based and desktop interface really boils down to what your goals are, regardless of programming language.

What do you want to build? A social media? A news website? Should it be accessible from the internet using web browser? etc. Then Django it is. Shall your app work without internet at all? Needs long CPU/GPU computations? Needs to look and feel native? Then go for desktop app.

BTW. I would use Qt for Python instead of Tkinter. More flexible, has lots of widgets, and native look and feel.

Collapse
 
jesterrexxux profile image
JesterRexx-ux

Thank you sir!!

Collapse
 
muhimen123 profile image
Muhimen

1 vote for django. To be honest, tkinter is not the best option for desktop GUI(Python was never answer).

On the other hand, you can make masterpieces with Django(atleast this is what twitter did)

Collapse
 
jesterrexxux profile image
JesterRexx-ux

I know but as a python developer or we can say as a newbie just got doubts here and there..........just wanna write a web application in django.....I mean it's libraries are pretty good