Search code examples
pythonhtmldjangouser-interfacepyside2

Importing Pyside-2 project into my web site built by Django


I have a UI project by Pyside 2 in python. Also I have a web site built base on Django. I want to know if it is possible to run my UI project in the web site? Is there a way to convert the UI code into Html or just a simple way to put my UI code in HTML file?


Solution

  • I don't think that will work. According to my knowledge, Pyside -- which is basically Qt for python -- is only workable as an executable, which will not translate into Django. Django's templates are default rendered to HTML files where you can load css and js files into it.

    If you're just getting started on the frontend, I'll recommend using bootstrap, only in case you don't know where to start.