Python Forum
Fixing - MIME type ("text/x-python") that is not "text/event-stream"
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Fixing - MIME type ("text/x-python") that is not "text/event-stream"
#5
That was just my first guess, since Apache (and most other servers) don't run executable files by default, except for php.  So you'd need to enable it in the config, or through a module that needs to be loaded.

Flask is a framework for python that makes a lot of web development easier (it was recommended earlier in the thread).  The docs, in particular, are really nice.  Here's their page on configuring Apache: http://flask.pocoo.org/docs/0.12/deploying/mod_wsgi/
Almost none of that config is specific to Flask, so feel free to copy it at will :)
Reply


Messages In This Thread
RE: Fixing - MIME type ("text/x-python") that is not "text/event-stream" - by nilamo - Sep-22-2017, 08:17 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to access text files, hidden behind 'm3u8' resources Pavel_47 4 2,290 Feb-19-2023, 02:47 PM
Last Post: Pavel_47
  Flask, read H5 text value tantony 4 1,473 Oct-31-2022, 05:29 PM
Last Post: tantony
  [Solved] Browser won't parse text from yaml loaded into Jinja SpongeB0B 1 1,013 Jul-07-2022, 09:37 PM
Last Post: SpongeB0B
  Python BeautifulSoup gives unusable text? dggo666 0 1,448 Oct-29-2021, 05:12 AM
Last Post: dggo666
  selenium wait for text question Larz60+ 3 2,575 Oct-25-2021, 09:50 AM
Last Post: Larz60+
  BeautifulSoup returning text as N/A tantony 6 2,777 Sep-09-2021, 12:59 PM
Last Post: tantony
  Extract Href URL and Text From List knight2000 2 9,179 Jul-08-2021, 12:53 PM
Last Post: knight2000
  How to get specific TD text via Selenium? euras 3 8,858 May-14-2021, 05:12 PM
Last Post: snippsat
  Python 3.9 : BeautifulSoup: 'NoneType' object has no attribute 'text' fudgemasterultra 1 8,955 Mar-03-2021, 09:40 AM
Last Post: Larz60+
  Scraping all website text using Python MKMKMKMK 1 2,103 Nov-26-2020, 10:35 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020