Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
  Question Thread: Deploy Flask apps on Windows...
Post: Deploy Flask apps on Windows...

Hi everyone, I created a small Flask application. Thanks to this community btw ! It work really well in local. But now I would like to host it to make it available WWW. The tricky thing is I'm unde...
SpongeB0B Web Scraping & Web Development 2 309 Aug-08-2021, 07:06 AM
  Question Thread: Accessing a value of a dictionary with jinja....
Post: Accessing a value of a dictionary with jinja....

Hi everyone, I have a nested dictionary like this (inside my python flask file) {"content":[{"A":"blablabala"},{"A":"blublublu"}]}listed as DICT here after So I need to grab "blablabala" without kn...
SpongeB0B Web Scraping & Web Development 2 357 Aug-06-2021, 06:44 AM
    Thread: Parsing a YAML file without changing the string content..?, Flask - solved.
Post: RE: Parsing a YAML file without changing the strin...

Oh ! I believe I found -> https://flask.palletsprojects.com/en/2.0.x/templating/ Quote:{% autoescape false %} <p>autoescaping is disabled here <p>{{ will_not_be_escaped }} {%...
SpongeB0B General Coding Help 2 269 Aug-05-2021, 08:02 AM
    Thread: Parsing a YAML file without changing the string content..?, Flask - solved.
Post: RE: Parsing a YAML file without changing the strin...

I made some test and it the same with a simple with open('test.txt', 'r') as file2: tyml = file2.read() return render_template('index.html', TYML = tyml )So either it's when I read the file with...
SpongeB0B General Coding Help 2 269 Aug-05-2021, 07:19 AM
  Thumbs Up Thread: Parsing a YAML file without changing the string content..?, Flask - solved.
Post: Parsing a YAML file without changing the string co...

Hi everyone, I'm using a yaml file to load the text for a html page (Flask, Jinja) extract of my YAML Title: This is a <b>test</b> but this will be parsed in my html as -> Title: Thi...
SpongeB0B General Coding Help 2 269 Aug-05-2021, 06:31 AM
  Thumbs Up Thread: PDF generation / edit
Post: RE: PDF generation / edit

Thanks again @Larz60+ , Actually I didn't g00gle it, but asked the Duck [Image: https://duckduckgo.com/assets/common/dax-logo.svg] instead **biggrin** and doing so, I've found : FPDF2 and more prec...
SpongeB0B General Coding Help 2 346 Jul-28-2021, 05:59 AM
  Question Thread: PDF generation / edit
Post: PDF generation / edit

Hi everyone, I made a little website with flask, now I would like to generate a pdf (static) with the content of that website. By static I mean that I will generate the PDF once, not the user. Idea...
SpongeB0B General Coding Help 2 346 Jul-27-2021, 07:58 AM
    Thread: running Flask with waitress having web traffic log...
Post: RE: running Flask with waitress having web traffic...

I'm advancing. Instead of launch my app trough an .ini file, according to the Waitress doc I can do -> from waitress import serve from paste.translogger import TransLoggerif __name__ == "__main__...
SpongeB0B Web Scraping & Web Development 2 927 May-06-2021, 07:07 AM
    Thread: running Flask with waitress having web traffic log...
Post: RE: running Flask with waitress having web traffic...

I found some guidance https://stackoverflow.com/questions/5237...ress-serve https://docs.pylonsproject.org/projects/...astedeploy But in the .ini , file I don't know what to put in line 2 -> [app...
SpongeB0B Web Scraping & Web Development 2 927 Apr-24-2021, 10:27 AM
  Question Thread: running Flask with waitress having web traffic log...
Post: running Flask with waitress having web traffic log...

Hi everyone, Following my previous thread: Flask-Self-hosted-deployment-which-server I will use Waitress as I'm running this under Windows :/ I would like to have the web traffic logged. but accord...
SpongeB0B Web Scraping & Web Development 2 927 Apr-24-2021, 09:51 AM
  Question Thread: Flask, Self-hosted deployment, which server ?
Post: Flask, Self-hosted deployment, which server ?

Hi everyone, On the official Flask support we can see listed under the Self-hosted options the ~following: Standalone WSGI Containers - Gunicorn - uWSGI - Gevent - Twisted Web - Proxy Setups uWSGI ...
SpongeB0B Web Scraping & Web Development 1 526 Apr-11-2021, 06:33 AM
  Question Thread: Forum about HTML
Post: Forum about HTML

Hi everyone, Which forum are you using for your HTML coding question ? Please don't mention Stackoverflow or Reddit , see here --> https://python-forum.io/Thread-python-fo...ckoverflow
SpongeB0B Bar 2 820 Feb-21-2021, 10:59 AM
  Shocked Thread: python-forum.io compared to reddit/Stackoverflow
Post: RE: python-forum.io compared to reddit/Stackoverfl...

I can't agree more with you @metulburr Today I had an HTML question, and I was crazy enough to think that Stackoverflow could help me.. instead I land on this -> [Image: https://i.imgur.com/2gtr2M...
SpongeB0B Board 4 6,171 Feb-21-2021, 10:55 AM
    Thread: Flask, send_from_directory not working : solved
Post: RE: Flask, send_from_directory not working

Thank you @ndc85430 !! it's was so simple ! I'm ashamed.... I'll try to find this tutorial where I have found this bad example/mistake !
SpongeB0B Web Scraping & Web Development 2 1,142 Jan-26-2021, 07:02 AM
  Question Thread: Flask, send_from_directory not working : solved
Post: Flask, send_from_directory not working : solved

Hi everyone, here my simple test code : def download(): try: return send_from_directory('C:\\original.jpg', filename='original.jpg', as_attachment=True) except FileNotFoundError: abort(404)N...
SpongeB0B Web Scraping & Web Development 2 1,142 Jan-26-2021, 06:12 AM
    Thread: Flask do not accept sub-folder in Template ?! : Solved
Post: RE: Flask do not accept sub-folder in Template ?! ...

I'm too much used to use \ so with render_template('test/test.html')it's work ! / instead of \ too bad the error message was not more explicit.
SpongeB0B Web Scraping & Web Development 2 693 Jan-15-2021, 08:00 AM
  Thumbs Up Thread: Flask do not accept sub-folder in Template ?! : Solved
Post: Flask do not accept sub-folder in Template ?! : So...

Hi everyone, I just realize that apparently we cannot create sub-folder in Templates ! :/ Is that the normal behavior ? if yes , WHY ? render_template('test\test.html')Give me an error render_te...
SpongeB0B Web Scraping & Web Development 2 693 Jan-15-2021, 07:59 AM
    Thread: Convert ActiveDirectory timestamp into regular one. Arrow (solved)
Post: RE: Convert ActiveDirectory timestamp into regular...

Nevermind I found **biggrin** If somebody is interested, let me know and i'll post an explanation.
SpongeB0B General Coding Help 2 504 Nov-02-2020, 08:29 AM
  Thumbs Up Thread: Convert ActiveDirectory timestamp into regular one. Arrow (solved)
Post: Convert ActiveDirectory timestamp into regular one...

Hi everyone, I try to convert the timestamp from active directory (accountExpires field) 132556896000000000 representing : 1/21/2021 12:00:00 AM Pacific Standard Time Microsoft reference Wrote:This...
SpongeB0B General Coding Help 2 504 Nov-02-2020, 07:59 AM
    Thread: Active Directory add an attribute.
Post: RE: Active Directory add an attribute.

@DeaD_EyE I tried of course but this raise an error Quote: the request attributes does not exist but it's ok , I've found a workaround (I use another existing attributes :/ )
SpongeB0B General Coding Help 2 732 Oct-13-2020, 05:36 AM

User Panel Messages

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