2017-10-19 9:37 GMT+02:00 Erik Rull <[email protected]>: > Hello Andréas, > > Andréas Kühne wrote: > > 1. First of all, you shouldn't run django with runserver on a production > > system. runserver is just for development purposes, and doesn't do a lot > of > > optimization that you get when running it "correctly". > > not a lot of optimizations - uh really? I run Django under Win10 and access > it as a single user only locally - so I use the runserver option, I didn't > want to install a whole webserver environment - it must only be available > when I need it so there is no need to run it always whenever the PC is on. > > Which optimizations are disabled when using runserver? Is the overall > performance of all queries and generating the HTML response itself slower? > I know that only one request is handled in parallel, but that's okay, I'm > the only one accessing the pages :-) > > The main thing is that when you start runserver it continuesly checks for changes in your .py files. So if you change a file, you get a reload. This shouldn't be running on a production environment. Another thing is that runserver also serves static files - something that you don't want your application server to do in production - that is better handled by a webserver.
If only you are looking at the application that isn't a problem, but I wouldn't allow it to be accessible to the Internet.... Regards, Andréas > > Best regards, > > > > Andréas > > Best regards, > > Erik > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/django-users/1ec07c78-8d9c-86c1-4918-10da1ccdf90c%40rdsoftware.de. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAK4qSCc99ES1DNp%2BH7Le8CwD12i2tRXJXH%3DCpaFQ6Tq4fGu_uw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

