[Flask] HTML content gets cut off

Wil Phan wil at pixar.com
Thu Mar 15 20:35:37 EDT 2018


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.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.bin>


More information about the Flask mailing list