Hi all,
I have no experience in web-apps with or without Muntjac. Upon installing muntjac, running the tests, and checking the sampler, I put together a simple file containing the 'hello world' code as shown on the
website and below:
class HelloWorld(Application):
def init(self):
main = Window('Hello window')
self.setMainWindow(main)
main.addComponent(Label('Hello World!'))
wsgi_app = ApplicationServlet(HelloWorld, debug=True)
wsgi_app = paste.session.SessionMiddleware(wsgi_app)
httpd = make_server('localhost', 8080, wsgi_app)
httpd.serve_forever()
After running it everything goes well but upon killing the process with Ctrl+C, I tried amending the file, and re-running, but I got an error that the address was taken. Clearly, the server wasn't killed. Can someone explain to me what the procedure to work with muntjac is? Do I need to somehow kill the server and restart it through Python? How do I 'refresh' the application that will be ran by the servlet?
I've also been working a lot with PyCharm on non-web Python code. PyCharm has built-in support for working with different servers and works great with Django, Flask, etc but I can't figure out how to make it work with muntjac. Does anyone know how to do it?
Thanks a lot!