Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p><strong>What is the best setup for a development environment?</strong></p> <p>Doesn't much matter. We use Django, which runs in Windows and Unix nicely. For production, we use Apache in Red Hat.</p> <p><strong>Is having to reload webserver to see the changes considered normal?</strong></p> <p>Yes. Not clear why you'd want anything different. Web application software shouldn't be dynamic. Content yes. Software no.</p> <p>In Django, we <em>develop</em> without using a web server of any kind on our desktop. The Django "runserver" command reloads the application under most circumstances. For development, this works great. The times when it won't reload are when we've damaged things so badly that the app doesn't properly.</p> <p><strong>What is the best setup to deploy a working Python app to production and why?</strong></p> <p>"Best" is undefined in this context. Therefore, please provide some qualification for "nest" (e.g., "fastest", "cheapest", "bluest")</p> <p><strong>Is it worth diving straight with a framework or to roll something simple of my own?</strong></p> <p>Don't waste time rolling your own. We use Django because of the built-in admin page that we don't have to write or maintain. Saves mountains of work.</p> <p><strong>How exactly are Python apps served if I have to reload httpd to see the changes?</strong></p> <p>Two methods:</p> <ul> <li><p>Daemon - mod_wsgi or mod_fastcgi have a Python daemon process to which they connect. Change your software. Restart the daemon.</p></li> <li><p>Embedded - mod_wsgi or mod_python have an embedded mode in which the Python interpreter is inside the mod, inside Apache. You have to restart httpd to restart that embedded interpreter.</p></li> </ul> <p><strong>Do I need to look into using multi-threaded?</strong></p> <p>Yes and no. Yes you do need to be aware of this. No, you don't need to do very much. Apache and mod_wsgi and Django should handle this for you.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload