I want to make a application that run as a web application or desktop application, I know how to implement for a web server using Django or Flask, i prefer Django, but is there any way to port it to a desktop application too? 
I found a nodewebkit that maybe give me the solution but, I don`t have any idea on how to use it.