I have used django for a while, It is very esay to understand and the documentation by the djangoproject.com is very good. Now i am thinking to work with twisted-python.But i didn't find any proper documentation like django(i did not find any mvp architecture like settings.py, views.py,models.py in django).Is it possible to do projects with twisted-python like django.?Thanks in advance
I congratulate you on your choice to learn Twisted. Here are the key differences you should be aware about.
Django is a Web CMS (Content Management System) created especially for sites building. It's super good for fast site's creation. But it's threaded, that means it's not so good in supporting of high loads.
Twisted excels in scalability and high loads support. It's powerful asynchronous framework for any (all) kind of network development. Being asynchronous it's super performant. Youtube was written on twisted-like pythonic framework called Medusa. You might want to read more about comparisons of threaded vs asynchronous programming methods.
So yes, you can obviously implement your site's backend with Twisted, but keep in mind that Twisted is a little bit more of low level framework compared to Django (thought more flexible) and it requires a bit more of knowledge about network programming than Django.
To get started with Twisted and to get familiar yourself with asynchronous programming approach, I would recommend to go through this book.
It helped me a lot when I started to learn Twisted. Also there is a comprehensive documentation with a lot of code samples that, as for me, is very similar to one that Django has ;)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With