开发者

Django + ( CherryPy or Tornado) for deploying in Windows?

开发者 https://www.devze.com 2023-03-30 06:54 出处:网络
i finally come to run django on windows under cherrypy and tornado using: django_cpserver and django-tornado

i finally come to run django on windows under cherrypy and tornado using: django_cpserver and django-tornado

And here is my question:

  • is it OK to deploy the django project using one of them? mean; no security problem, no speed problems...
  • how to use nginx to reverse proxy the static files? i always hear about this t开发者_开发知识库echnique, but i only find Unix-Like configuration, how to do this on windows?
  • NB: as you can see i dident mention mod_wsgi, i will not use apache, i dont know why i hate it without testing it! but it seems that the mod_wsgi is the lonly way to modify the wsgi file to avoid server restarting (all my information are what i've read from internet...), am i wrong? if so, how to do that with cherrypy?


it seems that this one will not update! return HttpResponse(a) if you put a = "now it's %s" % datetime.datetime.now() is really bad, you should put

HttpResponse("now it's %s" % datetime.datetime.now())

it seems that it's not only a problem of which server to use! but also how to use variables! sorry if i was out of the question, but i found this and i said maybe it will help!

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号