<div dir="ltr"><div class="markdown-here-wrapper" style=""><p style="margin:0px 0px 1.2em!important">Il giorno mar 30 apr 2019 alle ore 16:12 Manlio Perillo <a href="http://mailto:manlio.perillo@gmail.com">manlio.perillo@gmail.com</a> ha scritto:</p>
<p style="margin:0px 0px 1.2em!important"></p><div class="markdown-here-exclude"><p></p><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Quale print?<br></blockquote><p></p></div><p style="margin:0px 0px 1.2em!important"></p>
<p style="margin:0px 0px 1.2em!important">Il print era quello del mio script di test (che funziona come previsto).</p>
<p style="margin:0px 0px 1.2em!important"></p><div class="markdown-here-exclude"><p></p><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Ti riferisci ai  4 messaggi che runserver scrive su stdout?<br></blockquote><p></p></div><p style="margin:0px 0px 1.2em!important"></p>
<p style="margin:0px 0px 1.2em!important">si, una volta avviato il manage.py originale. E a tutto quello che scrive runserver sulla console.</p>
<p style="margin:0px 0px 1.2em!important"></p><div class="markdown-here-exclude"><p></p><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Cosa devi fare esattamente?<br clear="all"></blockquote><p></p></div><p style="margin:0px 0px 1.2em!important"></p>
<p style="margin:0px 0px 1.2em!important">Devo far partire manage.py runserver host:port tramite il mio plugin per @vue/cli-ui.<br>In realtà la cosa funziona. Purtroppo non vedo nell’interfaccia web il log di django (a differenza del mio script di test con i print).</p>
<p style="margin:0px 0px 1.2em!important">ad ogni modo il mio script di test era:</p>
<pre style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;font-size:1em;line-height:1.2em;margin:1.2em 0px"><code class="hljs language-python" style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px;display:inline;white-space:pre;overflow:auto;border-radius:3px;border:1px solid rgb(204,204,204);padding:0.5em 0.7em;display:block!important;display:block;overflow-x:auto;padding:0.5em;color:rgb(51,51,51);background:rgb(248,248,248) none repeat scroll 0% 0%">    <span class="hljs-keyword" style="color:rgb(51,51,51);font-weight:bold">import</span> sys
    <span class="hljs-keyword" style="color:rgb(51,51,51);font-weight:bold">import</span> time

    COUNT = <span class="hljs-number" style="color:rgb(0,128,128)">0</span>

    print(<span class="hljs-string" style="color:rgb(221,17,68)">"Io sono il coso django "</span>, <span class="hljs-string" style="color:rgb(221,17,68)">" "</span>.join(str(a) <span class="hljs-keyword" style="color:rgb(51,51,51);font-weight:bold">for</span> a <span class="hljs-keyword" style="color:rgb(51,51,51);font-weight:bold">in</span> sys.argv))
    sys.stdout.flush()
    <span class="hljs-keyword" style="color:rgb(51,51,51);font-weight:bold">while</span> <span class="hljs-keyword" style="color:rgb(51,51,51);font-weight:bold">True</span>:
        time.sleep(<span class="hljs-number" style="color:rgb(0,128,128)">1</span>)
        print(<span class="hljs-string" style="color:rgb(221,17,68)">"io sto facendo il server :P ... {}"</span>.format(COUNT))
        COUNT += <span class="hljs-number" style="color:rgb(0,128,128)">1</span>
        sys.stdout.flush()
    print(<span class="hljs-string" style="color:rgb(221,17,68)">"Ho finito di fare il server :)"</span>)
    sys.stdout.flush()
</code></pre>
<p style="margin:0px 0px 1.2em!important">(ok, Inizialmente gestivo i segnali ma visto che mi manda un SIGKILL…)</p>
<div title="MDH:PGRpdiBkaXI9Imx0ciI+PGRpdiBkaXI9Imx0ciI+PGRpdiBkaXI9Imx0ciI+PGRpdiBkaXI9Imx0
ciI+PGRpdiBkaXI9Imx0ciI+PGRpdiBjbGFzcz0iZ21haWxfcXVvdGUiPjxkaXYgZGlyPSJsdHIi
IGNsYXNzPSJnbWFpbF9hdHRyIj5JbCBnaW9ybm8gbWFyIDMwIGFwciAyMDE5IGFsbGUgb3JlIDE2
OjEyIE1h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ic3A7Jm5ic3A7Jm5ic3A7Jm5ic3A7Jm5ic3A7IHByaW50KCJpbyBzdG8gZmFjZW5kbyBp
bCBzZXJ2ZXIgOlAgLi4uIHt9Ii5mb3JtYXQoQ09VTlQpKTxicj4mbmJzcDsmbmJzcDsmbmJzcDsm
bmJzcDsmbmJzcDsmbmJzcDsmbmJzcDsgQ09VTlQgKz0gMTxicj4mbmJzcDsmbmJzcDsmbmJzcDsm
bmJzcDsmbmJzcDsmbmJzcDsmbmJzcDsgc3lzLnN0ZG91dC5mbHVzaCgpPGJyPiZuYnNwOyZuYnNw
OyZuYnNwOyBwcmludCgiSG8gZmluaXRvIGRpIGZhcmUgaWwgc2VydmVyIDopIik8YnI+Jm5ic3A7
Jm5ic3A7Jm5ic3A7IHN5cy5zdGRvdXQuZmx1c2goKTxicj5gYGA8YnI+PGJyPihvaywgSW5pemlh
bG1lbnRlIGdlc3Rpdm8gaSBzZWduYWxpIG1hIHZpc3RvIGNoZSBtaSBtYW5kYSB1biBTSUdLSUxM
Li4uKTxicj48YnI+PGJyPjwvZGl2PjwvZGl2PjwvZGl2PjwvZGl2PjwvZGl2Pg==" style="height:0;width:0;max-height:0;max-width:0;overflow:hidden;font-size:0em;padding:0;margin:0"></div></div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Luca</div></div></div></div></div></div></div></div></div>