Search code examples
pythondjangotwisted

Can we create apps with twisted python as django...?


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


Solution

  • I have not really used Twisted (Only looked into it abit when i had one idea), but - You do not find the things you are looking for because they are not there. Django is web framework while Twisted, as they on their site are saying "Twisted is an event-driven networking engine written in Python and licensed under the open source"

    So basically you can catch requests with twisted web, but you do not have that whole MVC that django offers.

    There are other questions about using them together (using django and twisted together), but why would you do that? What are you looking to gain? Asynchronous non-blocking functions/snippets? Why not use celery then... instead of twisted.