[Flask] Flask Digest, Vol 33, Issue 15

Wil Phan wil at pixar.com
Fri Mar 16 17:28:31 EDT 2018


To be clear, the results were the same on both browsers.  I've had other
webdev colleagues take a look on their Macs and the results were the same
as well.  Also, in case it helps, the stack of software are all 64bit.

Thanks again everyone.  And sorry about my zip file not coming through.

On Fri, Mar 16, 2018 at 2:26 PM, Wil Phan <wil at pixar.com> wrote:

> Weird.  Okay, here's a Dropbox link to the "test.zip" package:
> https://www.dropbox.com/s/4ruc3pj29ruu4jv/test.zip?dl=0
>
> I have tried Firefox and Chrome.  I don't touch the Microsoft browsers,
> despite running on Windows. :D
>
> On Fri, Mar 16, 2018 at 2:12 PM, sidwoodstock . <sidwoodstock at gmail.com>
> wrote:
>
>> Code still doesn't seem to be coming through.
>>
>> Just as a wild guess--Have you tried other browsers? I've seen all sorts
>> of odd bugs with win10's edge browser.
>>
>> -Scott Woodstock
>>
>> On Fri, Mar 16, 2018 at 9:00 AM, <flask-request at python.org> wrote:
>>
>>> Send Flask mailing list submissions to
>>>         flask at python.org
>>>
>>> To subscribe or unsubscribe via the World Wide Web, visit
>>>         https://mail.python.org/mailman/listinfo/flask
>>> or, via email, send a message with subject or body 'help' to
>>>         flask-request at python.org
>>>
>>> You can reach the person managing the list at
>>>         flask-owner at python.org
>>>
>>> When replying, please edit your Subject line so it is more specific
>>> than "Re: Contents of Flask digest..."
>>>
>>>
>>> Today's Topics:
>>>
>>>    1. Re: HTML content gets cut off (Stephen Mazzei)
>>>    2. Re: HTML content gets cut off (Wil Phan)
>>>
>>>
>>> ----------------------------------------------------------------------
>>>
>>> Message: 1
>>> Date: Thu, 15 Mar 2018 19:42:04 -0400
>>> From: Stephen Mazzei <mazzei.stephen.a at gmail.com>
>>> To: Wil Phan <wil at pixar.com>
>>> Cc: flask at python.org
>>> Subject: Re: [Flask] HTML content gets cut off
>>> Message-ID:
>>>         <CANZkwgUmdgh=PmwbzM1-yA4y+vZtW2-n9CdDmY-V1OxcF_DKJw at mail.gm
>>> ail.com>
>>> Content-Type: text/plain; charset="utf-8"
>>>
>>> Can you post your code if its not to long?
>>>
>>> On Mar 15, 2018 7:40 PM, "Wil Phan" <wil at pixar.com> wrote:
>>>
>>> > I don't believe so, but I'm not quite sure what you mean.  The HTML is
>>> > grabbed by the "render_template" function and the rest is handled by
>>> > CGI/Apache/Flask.
>>> >
>>> > On Thu, Mar 15, 2018 at 4:26 PM, Stephen Mazzei <
>>> > mazzei.stephen.a at gmail.com> wrote:
>>> >
>>> >> Are you setting your data as a session variable then passing it?
>>> >>
>>> >> On Mar 15, 2018 6:58 PM, "Wil Phan" <wil at pixar.com> wrote:
>>> >>
>>> >>> Hello everyone,
>>> >>>
>>> >>> I'm trying to run Flask with Apache CGI on Windows but it won't load
>>> all
>>> >>> the HTML content.  It misses the last few-to-several lines.  Apache
>>> CGI
>>> >>> alone (no Flask involved) has no problems.  Testing Flask using its
>>> >>> internal web server and the same Python script works fine too.
>>> >>>
>>> >>> The HTML output is pretty small, just about one screenful.  When I
>>> try
>>> >>> to output just a tiny bit of HTML it still gets cut off.  The CSS is
>>> cut
>>> >>> off too.  I tried stripping almost all the HTML and code out of the
>>> >>> template to a bare minimum but the results were the same.  Sending
>>> HTML
>>> >>> directly from the Python script (without using the template) has the
>>> same
>>> >>> results.
>>> >>>
>>> >>> I'm running Windows 10, Apache 2.4.29, Python 2.7.13, Flask 0.12.2.
>>> >>> There are no Apache errors.  The Flask web server has no errors
>>> either when
>>> >>> I'm using that to test, but that's expected since all the HTML is
>>> sent to
>>> >>> the browser in this case.  I'm attaching a stripped down version of
>>> the
>>> >>> scripts, cgi, template, and css files (which I tested to have the
>>> same
>>> >>> results with HTML getting cut off).
>>> >>>
>>> >>> Does anyone have any ideas on this?
>>> >>>
>>> >>> Thanks in advanced for taking a look,
>>> >>> wil
>>> >>>
>>> >>>
>>> >>> PS.  I'm new to Flask so my apologies if there's a better place to
>>> post
>>> >>> this.
>>> >>>
>>> >>>
>>> >>>
>>> >>>
>>> >>>
>>> >>> _______________________________________________
>>> >>> Flask mailing list
>>> >>> Flask at python.org
>>> >>> https://mail.python.org/mailman/listinfo/flask
>>> >>>
>>> >>>
>>> >
>>> -------------- next part --------------
>>> An HTML attachment was scrubbed...
>>> URL: <http://mail.python.org/pipermail/flask/attachments/20180315
>>> /c0c3c87a/attachment-0001.html>
>>>
>>> ------------------------------
>>>
>>> Message: 2
>>> Date: Thu, 15 Mar 2018 17:35:37 -0700
>>> From: Wil Phan <wil at pixar.com>
>>> To: Stephen Mazzei <mazzei.stephen.a at gmail.com>
>>> Cc: flask at python.org
>>> Subject: Re: [Flask] HTML content gets cut off
>>> Message-ID:
>>>         <CAAG8=PK4CES+KFkOeyAgQsHa2YEV=Yit7Rae0=AxW0DTsWfsew at mail.gm
>>> ail.com>
>>> Content-Type: text/plain; charset="utf-8"
>>>
>>> I attached a package of files in my original email.  Did that no go
>>> through?
>>>
>>> Here it is again.
>>>
>>>
>>>
>>> On Thu, Mar 15, 2018 at 4:42 PM, Stephen Mazzei <
>>> mazzei.stephen.a at gmail.com>
>>> wrote:
>>>
>>> > Can you post your code if its not to long?
>>> >
>>> > On Mar 15, 2018 7:40 PM, "Wil Phan" <wil at pixar.com> wrote:
>>> >
>>> >> I don't believe so, but I'm not quite sure what you mean.  The HTML is
>>> >> grabbed by the "render_template" function and the rest is handled by
>>> >> CGI/Apache/Flask.
>>> >>
>>> >> On Thu, Mar 15, 2018 at 4:26 PM, Stephen Mazzei <
>>> >> mazzei.stephen.a at gmail.com> wrote:
>>> >>
>>> >>> Are you setting your data as a session variable then passing it?
>>> >>>
>>> >>> On Mar 15, 2018 6:58 PM, "Wil Phan" <wil at pixar.com> wrote:
>>> >>>
>>> >>>> Hello everyone,
>>> >>>>
>>> >>>> I'm trying to run Flask with Apache CGI on Windows but it won't load
>>> >>>> all the HTML content.  It misses the last few-to-several lines.
>>> Apache CGI
>>> >>>> alone (no Flask involved) has no problems.  Testing Flask using its
>>> >>>> internal web server and the same Python script works fine too.
>>> >>>>
>>> >>>> The HTML output is pretty small, just about one screenful.  When I
>>> try
>>> >>>> to output just a tiny bit of HTML it still gets cut off.  The CSS
>>> is cut
>>> >>>> off too.  I tried stripping almost all the HTML and code out of the
>>> >>>> template to a bare minimum but the results were the same.  Sending
>>> HTML
>>> >>>> directly from the Python script (without using the template) has
>>> the same
>>> >>>> results.
>>> >>>>
>>> >>>> I'm running Windows 10, Apache 2.4.29, Python 2.7.13, Flask 0.12.2.
>>> >>>> There are no Apache errors.  The Flask web server has no errors
>>> either when
>>> >>>> I'm using that to test, but that's expected since all the HTML is
>>> sent to
>>> >>>> the browser in this case.  I'm attaching a stripped down version of
>>> the
>>> >>>> scripts, cgi, template, and css files (which I tested to have the
>>> same
>>> >>>> results with HTML getting cut off).
>>> >>>>
>>> >>>> Does anyone have any ideas on this?
>>> >>>>
>>> >>>> Thanks in advanced for taking a look,
>>> >>>> wil
>>> >>>>
>>> >>>>
>>> >>>> PS.  I'm new to Flask so my apologies if there's a better place to
>>> post
>>> >>>> this.
>>> >>>>
>>> >>>>
>>> >>>>
>>> >>>>
>>> >>>>
>>> >>>> _______________________________________________
>>> >>>> Flask mailing list
>>> >>>> Flask at python.org
>>> >>>> https://mail.python.org/mailman/listinfo/flask
>>> >>>>
>>> >>>>
>>> >>
>>> -------------- next part --------------
>>> An HTML attachment was scrubbed...
>>> URL: <http://mail.python.org/pipermail/flask/attachments/20180315
>>> /46c638a0/attachment-0001.html>
>>> -------------- next part --------------
>>> A non-text attachment was scrubbed...
>>> Name: test.zip
>>> Type: application/x-zip-compressed
>>> Size: 2513 bytes
>>> Desc: not available
>>> URL: <http://mail.python.org/pipermail/flask/attachments/20180315
>>> /46c638a0/attachment-0001.bin>
>>>
>>> ------------------------------
>>>
>>> Subject: Digest Footer
>>>
>>> _______________________________________________
>>> Flask mailing list
>>> Flask at python.org
>>> https://mail.python.org/mailman/listinfo/flask
>>>
>>>
>>> ------------------------------
>>>
>>> End of Flask Digest, Vol 33, Issue 15
>>> *************************************
>>>
>>
>>
>> _______________________________________________
>> Flask mailing list
>> Flask at python.org
>> https://mail.python.org/mailman/listinfo/flask
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/flask/attachments/20180316/6cbf9733/attachment-0001.html>


More information about the Flask mailing list